diff options
author | wm4 <wm4@nowhere> | 2012-10-21 17:08:54 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-10-24 21:56:34 +0200 |
commit | 4b4e4b56909a07f1738d75c0f3fc1739990adfc9 (patch) | |
tree | c48f1cc6606d0403330e13b007dbbeaaf7201f50 /sub | |
parent | f80a32a8ebd1573f1578d707416b07880c1a08c1 (diff) | |
download | mpv-4b4e4b56909a07f1738d75c0f3fc1739990adfc9.tar.bz2 mpv-4b4e4b56909a07f1738d75c0f3fc1739990adfc9.tar.xz |
draw_bmp: fix for yuy2 format
mp_get_chroma_shift() modifies its argument even if it fails, so we have
to restore that.
mp_image didn't set chroma shifts for yuy2.
Diffstat (limited to 'sub')
-rw-r--r-- | sub/draw_bmp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sub/draw_bmp.c b/sub/draw_bmp.c index 9945a8fc89..5adc446ba6 100644 --- a/sub/draw_bmp.c +++ b/sub/draw_bmp.c @@ -511,7 +511,8 @@ void mp_draw_sub_bitmaps(struct mp_draw_sub_cache **cache, struct mp_image *dst, bits = 16; break; } - } + } else + bits = 16; } #else int format = IMGFMT_444P; |