summaryrefslogtreecommitdiff
path: root/libavcodec/fraps.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-05-23 10:05:28 +0000
committerPaul B Mahol <onemda@gmail.com>2013-05-23 10:05:28 +0000
commit79f452f4e68696f1daa9f205b35037185959c9ea (patch)
tree5ca6839505a81f7cee78dc4b5425b3b6f95b1fdf /libavcodec/fraps.c
parent591fa0527827fae0ab61c1b2f9ff8e06c93ea989 (diff)
fraps: set avctx->color_range
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/fraps.c')
-rw-r--r--libavcodec/fraps.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/fraps.c b/libavcodec/fraps.c
index c53367c1b1..a1d5a17777 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;