fraps: set avctx->color_range

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2013-05-23 10:05:28 +00:00
parent 591fa05278
commit 79f452f4e6

View File

@ -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;