Commit 475a686a authored by Clément Bœsch's avatar Clément Bœsch

Merge commit '885a9d60'

* commit '885a9d60':
  pgssub: Fix subpicture colorspace and range

See 9779b626Merged-by: 's avatarClément Bœsch <u@pkh.me>
parents e4c07dc4 885a9d60
...@@ -354,7 +354,7 @@ static int parse_palette_segment(AVCodecContext *avctx, ...@@ -354,7 +354,7 @@ static int parse_palette_segment(AVCodecContext *avctx,
cb = bytestream_get_byte(&buf); cb = bytestream_get_byte(&buf);
alpha = bytestream_get_byte(&buf); alpha = bytestream_get_byte(&buf);
/* Default to BT.709 colorimetry. In case of <= 576 height use BT.601 */ /* Default to BT.709 colorspace. In case of <= 576 height use BT.601 */
if (avctx->height <= 0 || avctx->height > 576) { if (avctx->height <= 0 || avctx->height > 576) {
YUV_TO_RGB1_CCIR_BT709(cb, cr); YUV_TO_RGB1_CCIR_BT709(cb, cr);
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment