mirror of
https://github.com/mpv-player/mpv
synced 2025-01-02 21:12:23 +00:00
display height may be a lot smaller or larger than picture height, sample provided by winnicki
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12573 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
72bc1537cb
commit
2583016302
@ -84,9 +84,9 @@ static void draw_slice (void * _sh, uint8_t ** src, unsigned int y){
|
||||
stride[1]=stride[2]=mpeg2dec->decoder.uv_stride;
|
||||
|
||||
mpcodecs_draw_slice(sh, (uint8_t **)src,
|
||||
stride, info->sequence->display_width,
|
||||
(y+16<=info->sequence->display_height) ? 16 :
|
||||
info->sequence->display_height-y,
|
||||
stride, info->sequence->picture_width,
|
||||
(y+16<=info->sequence->picture_height) ? 16 :
|
||||
info->sequence->picture_height-y,
|
||||
0, y);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user