mirror of https://github.com/mpv-player/mpv
vd_ffmpeg: Minor code simplification.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31336 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
786b5e4352
commit
f604df4f76
|
@ -438,7 +438,8 @@ static void draw_slice(struct AVCodecContext *s,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (y < sh->disp_h) {
|
if (y < sh->disp_h) {
|
||||||
mpcodecs_draw_slice (sh, source, strides, sh->disp_w, (y+height)<=sh->disp_h?height:sh->disp_h-y, 0, y);
|
height = FFMIN(height, sh->disp_h-y);
|
||||||
|
mpcodecs_draw_slice (sh, source, strides, sh->disp_w, height, 0, y);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue