Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2015-11-22 03:44:18 +0300
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2015-11-22 03:44:18 +0300
commitf5074dd39ca3bc6bff96cafea1d723cf944f50e5 (patch)
tree137a48250f7d4d132254bce4ef03eba0a26f5d70 /libavcodec/rscc.c
parent16195aad75d7350c192628d7c72c17fd44d138bd (diff)
lavc/rscc: Fix colourspace for codec_tag RSCC.
Diffstat (limited to 'libavcodec/rscc.c')
-rw-r--r--libavcodec/rscc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libavcodec/rscc.c b/libavcodec/rscc.c
index a5bb7d3102..a2f7a0dc7c 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;