mirror of
https://github.com/mpv-player/mpv
synced 2024-11-18 21:16:10 +01:00
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:
parent
bf3c311ee8
commit
9823a4e64e
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user