[FFmpeg-cvslog] lavc/rscc: Fix colourspace for codec_tag RSCC.

Carl Eugen Hoyos git at videolan.org
Sun Nov 22 01:50:55 CET 2015


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Sun Nov 22 01:44:18 2015 +0100| [f5074dd39ca3bc6bff96cafea1d723cf944f50e5] | committer: Carl Eugen Hoyos

lavc/rscc: Fix colourspace for codec_tag RSCC.

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

 libavcodec/rscc.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/libavcodec/rscc.c b/libavcodec/rscc.c
index a5bb7d3..a2f7a0d 100644
--- a/libavcodec/rscc.c
+++ b/libavcodec/rscc.c
@@ -80,7 +80,11 @@ static av_cold int rscc_init(AVCodecContext *avctx)
     if (!ctx->reference)
         return AVERROR(ENOMEM);
 
-    avctx->pix_fmt = AV_PIX_FMT_BGRA;
+    if (avctx->codec_tag == MKTAG('I','S','C','C')) {
+        avctx->pix_fmt = AV_PIX_FMT_BGRA;
+    } else {
+        avctx->pix_fmt = AV_PIX_FMT_BGR0;
+    }
 
     /* Store the value to check for keyframes */
     ctx->inflated_size = avctx->width * avctx->height * 4;



More information about the ffmpeg-cvslog mailing list