[FFmpeg-cvslog] (lib)utvideodec: remove setting of color_primaries

Michael Niedermayer git at videolan.org
Mon Jun 10 16:12:00 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Jun 10 16:00:59 2013 +0200| [e473f7e6595d2787919bf6e7b5bfdd25fa636ce6] | committer: Michael Niedermayer

(lib)utvideodec: remove setting of color_primaries

Thanks-to: Paranoialmaniac
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e473f7e6595d2787919bf6e7b5bfdd25fa636ce6
---

 libavcodec/libutvideodec.cpp |    2 --
 libavcodec/utvideodec.c      |    2 --
 2 files changed, 4 deletions(-)

diff --git a/libavcodec/libutvideodec.cpp b/libavcodec/libutvideodec.cpp
index eadf4a1..0fae9f7 100644
--- a/libavcodec/libutvideodec.cpp
+++ b/libavcodec/libutvideodec.cpp
@@ -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;
diff --git a/libavcodec/utvideodec.c b/libavcodec/utvideodec.c
index 308cb69..8be1cc9 100644
--- a/libavcodec/utvideodec.c
+++ b/libavcodec/utvideodec.c
@@ -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:



More information about the ffmpeg-cvslog mailing list