From 08400331dcf475cc4ef986e4a08ba1597725ebdc Mon Sep 17 00:00:00 2001 From: michael Date: Tue, 16 Jul 2002 23:42:44 +0000 Subject: [PATCH] fallback to slices, if dr1 fails (bug found by kabi) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6743 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/vd_ffmpeg.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libmpcodecs/vd_ffmpeg.c b/libmpcodecs/vd_ffmpeg.c index e63ff020cb..78fd541e26 100644 --- a/libmpcodecs/vd_ffmpeg.c +++ b/libmpcodecs/vd_ffmpeg.c @@ -311,7 +311,8 @@ static void get_buffer(struct AVCodecContext *avctx, int width, int height, int 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 @@ static void get_buffer(struct AVCodecContext *avctx, int width, int height, int avctx->dr_opaque_frame = mpi; avctx->dr_ip_buffer_count=2; //FIXME +//printf("%X\n", (int)mpi->planes[0]); } #endif