mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 00:32:31 +00:00
fraps: set avctx->color_range
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
591fa05278
commit
79f452f4e6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user