summaryrefslogtreecommitdiff
path: root/libavcodec/fraps.c
diff options
context:
space:
mode:
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;