mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02: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