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
This commit is contained in:
arpi 2002-10-23 15:32:40 +00:00
parent bf3c311ee8
commit 9823a4e64e
1 changed files with 1 additions and 1 deletions

View File

@ -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) {