diff options
author | 2002-10-23 15:32:40 +0000 | |
---|---|---|
committer | 2002-10-23 15:32:40 +0000 | |
commit | 9823a4e64ef3388175fcb9e3cb208eb3e1821233 (patch) | |
tree | c9e80ca5f9a80eba14ed3640318b33370bccdde1 | |
parent | bf3c311ee84e177253c033b84144bbd367d42a86 (diff) |
If movie height is odd, the picture is placed badly, due to wrong rouding.
patch by Balatoni Denes <pnis@coder.hu>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7864 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libvo/vo_fbdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libvo/vo_fbdev.c b/libvo/vo_fbdev.c index f3a89faf78..9d03a4fbb8 100644 --- a/libvo/vo_fbdev.c +++ b/libvo/vo_fbdev.c @@ -1064,7 +1064,7 @@ static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width, return 1; } L123123875 = frame_buffer + (out_width - in_width) * fb_pixel_size / - 2 + (out_height - in_height) * fb_line_len / 2; + 2 + ( (out_height - in_height) / 2 ) * fb_line_len; if (verbose > 0) { if (verbose > 1) { |