diff options
author | Alexandre Colucci <alexandre@elgato.com> | 2011-03-25 17:31:28 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-05-24 19:10:34 +0200 |
commit | d980d7b1295290cedd978ef53118513838aa1484 (patch) | |
tree | e44199401f0e9f3024a4a6341760a12a3c40a104 /libavcodec | |
parent | 676eaf84335fa91ee6a699fc03207762b8a7d6ae (diff) | |
download | ffmpeg-d980d7b1295290cedd978ef53118513838aa1484.tar.gz |
pgssubdec: fix incorrect colors.
On Blu-ray colors are stored in the order YCrCb (and not YCbCr) as mentioned in the specifications:
see System Description Blu-ray Disc Read-Only Format, 9.14.4.2.2.1 Palette Definition Segment
When decoding a Blu-ray subtitle, the colors were incorrectly set.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/pgssubdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/pgssubdec.c b/libavcodec/pgssubdec.c index ea53e55b35..a480da1168 100644 --- a/libavcodec/pgssubdec.c +++ b/libavcodec/pgssubdec.c @@ -246,8 +246,8 @@ static void parse_palette_segment(AVCodecContext *avctx, while (buf < buf_end) { color_id = bytestream_get_byte(&buf); y = bytestream_get_byte(&buf); - cb = bytestream_get_byte(&buf); cr = bytestream_get_byte(&buf); + cb = bytestream_get_byte(&buf); alpha = bytestream_get_byte(&buf); YUV_TO_RGB1(cb, cr); |