Commit e473f7e6 authored by Michael Niedermayer's avatar Michael Niedermayer

(lib)utvideodec: remove setting of color_primaries

Thanks-to: Paranoialmaniac
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 99086073
...@@ -55,13 +55,11 @@ static av_cold int utvideo_decode_init(AVCodecContext *avctx) ...@@ -55,13 +55,11 @@ static av_cold int utvideo_decode_init(AVCodecContext *avctx)
#ifdef UTV_BT709 #ifdef UTV_BT709
case MKTAG('U', 'L', 'H', '0'): case MKTAG('U', 'L', 'H', '0'):
avctx->pix_fmt = AV_PIX_FMT_YUV420P; avctx->pix_fmt = AV_PIX_FMT_YUV420P;
avctx->color_primaries = AVCOL_PRI_BT709;
avctx->colorspace = AVCOL_SPC_BT709; avctx->colorspace = AVCOL_SPC_BT709;
format = UTVF_YV12; format = UTVF_YV12;
break; break;
case MKTAG('U', 'L', 'H', '2'): case MKTAG('U', 'L', 'H', '2'):
avctx->pix_fmt = AV_PIX_FMT_YUYV422; avctx->pix_fmt = AV_PIX_FMT_YUYV422;
avctx->color_primaries = AVCOL_PRI_BT709;
avctx->colorspace = AVCOL_SPC_BT709; avctx->colorspace = AVCOL_SPC_BT709;
format = UTVF_YUY2; format = UTVF_YUY2;
break; break;
......
...@@ -517,13 +517,11 @@ static av_cold int decode_init(AVCodecContext *avctx) ...@@ -517,13 +517,11 @@ static av_cold int decode_init(AVCodecContext *avctx)
case MKTAG('U', 'L', 'H', '0'): case MKTAG('U', 'L', 'H', '0'):
c->planes = 3; c->planes = 3;
avctx->pix_fmt = AV_PIX_FMT_YUV420P; avctx->pix_fmt = AV_PIX_FMT_YUV420P;
avctx->color_primaries = AVCOL_PRI_BT709;
avctx->colorspace = AVCOL_SPC_BT709; avctx->colorspace = AVCOL_SPC_BT709;
break; break;
case MKTAG('U', 'L', 'H', '2'): case MKTAG('U', 'L', 'H', '2'):
c->planes = 3; c->planes = 3;
avctx->pix_fmt = AV_PIX_FMT_YUV422P; avctx->pix_fmt = AV_PIX_FMT_YUV422P;
avctx->color_primaries = AVCOL_PRI_BT709;
avctx->colorspace = AVCOL_SPC_BT709; avctx->colorspace = AVCOL_SPC_BT709;
break; break;
default: default:
......
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