|
|
|
@@ -561,6 +561,19 @@ static void decode_vui(GetBitContext *gb, AVCodecContext *avctx, |
|
|
|
vui->transfer_characteristic = AVCOL_TRC_UNSPECIFIED; |
|
|
|
if (vui->matrix_coeffs >= AVCOL_SPC_NB) |
|
|
|
vui->matrix_coeffs = AVCOL_SPC_UNSPECIFIED; |
|
|
|
if (vui->matrix_coeffs == AVCOL_SPC_RGB) { |
|
|
|
switch (sps->pix_fmt) { |
|
|
|
case AV_PIX_FMT_YUV444P: |
|
|
|
sps->pix_fmt = AV_PIX_FMT_GBRP; |
|
|
|
break; |
|
|
|
case AV_PIX_FMT_YUV444P10: |
|
|
|
sps->pix_fmt = AV_PIX_FMT_GBRP10; |
|
|
|
break; |
|
|
|
case AV_PIX_FMT_YUV444P12: |
|
|
|
sps->pix_fmt = AV_PIX_FMT_GBRP12; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|