changeset 6742:93bce3460e2a

fallback to slices, if dr1 fails (bug found by kabi)
author michael
date Tue, 16 Jul 2002 23:42:44 +0000
parents 65f26506053d
children 5c6cc735c946
files libmpcodecs/vd_ffmpeg.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c	Tue Jul 16 21:07:05 2002 +0000
+++ b/libmpcodecs/vd_ffmpeg.c	Tue Jul 16 23:42:44 2002 +0000
@@ -311,7 +311,8 @@
         flags|=(!avctx->hurry_up && ctx->do_slices) ?
                 MP_IMGFLAG_DRAW_CALLBACK:0;
     else
-        flags|= MP_IMGFLAG_PRESERVE|MP_IMGFLAG_READABLE;
+        flags|= MP_IMGFLAG_PRESERVE|MP_IMGFLAG_READABLE
+                | (ctx->do_slices ? MP_IMGFLAG_DRAW_CALLBACK : 0);
 
 #if LIBAVCODEC_BUILD > 4616
     if(avctx->has_b_frames){
@@ -345,6 +346,7 @@
 
     avctx->dr_opaque_frame = mpi;
     avctx->dr_ip_buffer_count=2; //FIXME
+//printf("%X\n", (int)mpi->planes[0]);
 }
 #endif