[FFmpeg-cvslog] fraps: set color_range

Vittorio Giovara git at videolan.org
Mon Mar 17 16:06:11 CET 2014


ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Wed Mar 12 11:52:40 2014 +0100| [6612a03d7470af4aa6b8aa313b1eff013691d181] | committer: Vittorio Giovara

fraps: set color_range

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

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

diff --git a/libavcodec/fraps.c b/libavcodec/fraps.c
index f12e4e0..1005a56 100644
--- a/libavcodec/fraps.c
+++ b/libavcodec/fraps.c
@@ -175,6 +175,8 @@ static int decode_frame(AVCodecContext *avctx,
         av_frame_unref(f);
     }
     avctx->pix_fmt = pix_fmt;
+    avctx->color_range = version & 1 ? AVCOL_RANGE_UNSPECIFIED
+                                     : AVCOL_RANGE_JPEG;
 
     expected_size = header_size;
 



More information about the ffmpeg-cvslog mailing list