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:
reimar 2010-06-06 11:23:56 +00:00 committed by Uoti Urpala
parent 786b5e4352
commit f604df4f76
1 changed files with 2 additions and 1 deletions

View File

@ -438,7 +438,8 @@ static void draw_slice(struct AVCodecContext *s,
}
}
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);
}
}