Browse Source

(lib)utvideodec: remove setting of color_primaries

Thanks-to: Paranoialmaniac
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.0
Michael Niedermayer 12 years ago
parent
commit
e473f7e659
2 changed files with 0 additions and 4 deletions
  1. +0
    -2
      libavcodec/libutvideodec.cpp
  2. +0
    -2
      libavcodec/utvideodec.c

+ 0
- 2
libavcodec/libutvideodec.cpp View File

@@ -55,13 +55,11 @@ static av_cold int utvideo_decode_init(AVCodecContext *avctx)
#ifdef UTV_BT709
case MKTAG('U', 'L', 'H', '0'):
avctx->pix_fmt = AV_PIX_FMT_YUV420P;
avctx->color_primaries = AVCOL_PRI_BT709;
avctx->colorspace = AVCOL_SPC_BT709;
format = UTVF_YV12;
break;
case MKTAG('U', 'L', 'H', '2'):
avctx->pix_fmt = AV_PIX_FMT_YUYV422;
avctx->color_primaries = AVCOL_PRI_BT709;
avctx->colorspace = AVCOL_SPC_BT709;
format = UTVF_YUY2;
break;


+ 0
- 2
libavcodec/utvideodec.c View File

@@ -517,13 +517,11 @@ static av_cold int decode_init(AVCodecContext *avctx)
case MKTAG('U', 'L', 'H', '0'):
c->planes = 3;
avctx->pix_fmt = AV_PIX_FMT_YUV420P;
avctx->color_primaries = AVCOL_PRI_BT709;
avctx->colorspace = AVCOL_SPC_BT709;
break;
case MKTAG('U', 'L', 'H', '2'):
c->planes = 3;
avctx->pix_fmt = AV_PIX_FMT_YUV422P;
avctx->color_primaries = AVCOL_PRI_BT709;
avctx->colorspace = AVCOL_SPC_BT709;
break;
default:


Loading…
Cancel
Save