[FFmpeg-cvslog] avcodec/fraps: use BT.709 colorspace for YUV Fraps versions

Hendrik Leppkes git at videolan.org
Sat Sep 21 15:14:13 CEST 2013


ffmpeg | branch: master | Hendrik Leppkes <h.leppkes at gmail.com> | Tue Sep 17 18:26:43 2013 +0000| [1c4fa2aaf23085684dee84c38d185e079ec74b0f] | committer: Paul B Mahol

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.

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

 libavcodec/fraps.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/fraps.c b/libavcodec/fraps.c
index bdbe511..b670609 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;



More information about the ffmpeg-cvslog mailing list