diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-09-03 11:16:29 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-09-03 11:16:29 +0000 |
commit | bb6c34e55b158c457272046ed9f22b974e832fb5 (patch) | |
tree | 44e1ad07eb55b8a2262c6f0b3859477a9d5d7eef /ffplay.c | |
parent | 0ad306bc818c48035af204c350ce136787178dc2 (diff) | |
download | ffmpeg-bb6c34e55b158c457272046ed9f22b974e832fb5.tar.gz |
Fix round to even for aspect ratio correction.
Originally committed as revision 15173 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffplay.c')
-rw-r--r-- | ffplay.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -731,10 +731,10 @@ static void video_image_display(VideoState *is) /* XXX: we suppose the screen has a 1.0 pixel ratio */ height = is->height; - width = ((int)rint(height * aspect_ratio)) & -3; + width = ((int)rint(height * aspect_ratio)) & ~1; if (width > is->width) { width = is->width; - height = ((int)rint(width / aspect_ratio)) & -3; + height = ((int)rint(width / aspect_ratio)) & ~1; } x = (is->width - width) / 2; y = (is->height - height) / 2; |