aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2013-09-17 18:26:43 +0000
committerPaul B Mahol <onemda@gmail.com>2013-09-21 13:09:13 +0000
commit1c4fa2aaf23085684dee84c38d185e079ec74b0f (patch)
treedc5f13b67d99980baef8e5eaa9924217b31fdac7 /libavcodec
parent59d72f8b16472fa962f7305577d0dd33dd3f5a49 (diff)
downloadffmpeg-1c4fa2aaf23085684dee84c38d185e079ec74b0f.tar.gz
avcodec/fraps: use BT.709 colorspace for YUV Fraps versions
Based both on comparison to the reference decoder, and comments from the fraps developers upon inquiry how to handle the yuv fraps variants.
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/fraps.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/fraps.c b/libavcodec/fraps.c
index bdbe511d8d..b6706096cb 100644
--- a/libavcodec/fraps.c
+++ b/libavcodec/fraps.c
@@ -206,6 +206,7 @@ static int decode_frame(AVCodecContext *avctx,
avctx->pix_fmt = version & 1 ? AV_PIX_FMT_BGR24 : AV_PIX_FMT_YUVJ420P;
avctx->color_range = version & 1 ? AVCOL_RANGE_UNSPECIFIED : AVCOL_RANGE_JPEG;
+ avctx->colorspace = version & 1 ? AVCOL_SPC_UNSPECIFIED : AVCOL_SPC_BT709;
if ((ret = ff_thread_get_buffer(avctx, &frame, 0)) < 0)
return ret;