[FFmpeg-devel] [PATCH] fraps: use BT.709 colorspace for YUV Fraps versions
Paul B Mahol
onemda at gmail.com
Tue Sep 17 20:26:43 CEST 2013
From: Hendrik Leppkes <h.leppkes at gmail.com>
---
libavcodec/fraps.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/fraps.c b/libavcodec/fraps.c
index a1d5a17..70c1104 100644
--- a/libavcodec/fraps.c
+++ b/libavcodec/fraps.c
@@ -201,6 +201,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;
--
1.8.1.5
More information about the ffmpeg-devel
mailing list