[FFmpeg-cvslog] fraps: set avctx->color_range

Paul B Mahol git at videolan.org
Thu May 23 12:07:21 CEST 2013


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Thu May 23 10:05:28 2013 +0000| [79f452f4e68696f1daa9f205b35037185959c9ea] | committer: Paul B Mahol

fraps: set avctx->color_range

Signed-off-by: Paul B Mahol <onemda at gmail.com>

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

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

diff --git a/libavcodec/fraps.c b/libavcodec/fraps.c
index c53367c..a1d5a17 100644
--- a/libavcodec/fraps.c
+++ b/libavcodec/fraps.c
@@ -200,6 +200,7 @@ static int decode_frame(AVCodecContext *avctx,
     f->key_frame = 1;
 
     avctx->pix_fmt = version & 1 ? AV_PIX_FMT_BGR24 : AV_PIX_FMT_YUVJ420P;
+    avctx->color_range = version & 1 ? AVCOL_RANGE_UNSPECIFIED : AVCOL_RANGE_JPEG;
 
     if ((ret = ff_thread_get_buffer(avctx, &frame, 0)) < 0)
         return ret;



More information about the ffmpeg-cvslog mailing list