mirror of
https://github.com/mpv-player/mpv
synced 2024-12-14 02:45:43 +00:00
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
This commit is contained in:
parent
bf0939eb08
commit
08400331dc
@ -311,7 +311,8 @@ static void get_buffer(struct AVCodecContext *avctx, int width, int height, int
|
|||||||
flags|=(!avctx->hurry_up && ctx->do_slices) ?
|
flags|=(!avctx->hurry_up && ctx->do_slices) ?
|
||||||
MP_IMGFLAG_DRAW_CALLBACK:0;
|
MP_IMGFLAG_DRAW_CALLBACK:0;
|
||||||
else
|
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 LIBAVCODEC_BUILD > 4616
|
||||||
if(avctx->has_b_frames){
|
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_opaque_frame = mpi;
|
||||||
avctx->dr_ip_buffer_count=2; //FIXME
|
avctx->dr_ip_buffer_count=2; //FIXME
|
||||||
|
//printf("%X\n", (int)mpi->planes[0]);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user