mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-25 04:19:05 +00:00
Merge commit '885a9d6087315a85d98f7e89656ef01dc7104c4c'
* commit '885a9d6087315a85d98f7e89656ef01dc7104c4c':
pgssub: Fix subpicture colorspace and range
See 9779b62624
Merged-by: Clément Bœsch <u@pkh.me>
This commit is contained in:
commit
475a686a01
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user