mirror of
https://github.com/mpv-player/mpv
synced 2024-10-10 13:27:03 +02:00
check for display height when drawing slices
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15679 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
a23c484499
commit
14fd015a15
@ -452,9 +452,9 @@ static void draw_slice(struct AVCodecContext *s,
|
|||||||
}else
|
}else
|
||||||
#endif
|
#endif
|
||||||
#if LIBAVCODEC_BUILD >= 4670
|
#if LIBAVCODEC_BUILD >= 4670
|
||||||
mpcodecs_draw_slice (sh, source, src->linesize, width, height, 0, y);
|
mpcodecs_draw_slice (sh, source, src->linesize, width, (y+16)<=sh->disp_h?height:sh->disp_h-y, 0, y);
|
||||||
#else
|
#else
|
||||||
mpcodecs_draw_slice (sh,src, stride, width, height, 0, y);
|
mpcodecs_draw_slice (sh,src, stride, width, (y+16)<=sh->disp_h?height:sh->disp_h-y, 0, y);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user