You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
Merge commit '6612a03d7470af4aa6b8aa313b1eff013691d181'
* commit '6612a03d7470af4aa6b8aa313b1eff013691d181':
fraps: set color_range
Conflicts:
libavcodec/fraps.c
See: 79f452f4e6
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -207,7 +207,8 @@ static int decode_frame(AVCodecContext *avctx,
|
|||||||
f->key_frame = 1;
|
f->key_frame = 1;
|
||||||
|
|
||||||
avctx->pix_fmt = version & 1 ? AV_PIX_FMT_BGR24 : AV_PIX_FMT_YUVJ420P;
|
avctx->pix_fmt = version & 1 ? AV_PIX_FMT_BGR24 : AV_PIX_FMT_YUVJ420P;
|
||||||
avctx->color_range = version & 1 ? AVCOL_RANGE_UNSPECIFIED : AVCOL_RANGE_JPEG;
|
avctx->color_range = version & 1 ? AVCOL_RANGE_UNSPECIFIED
|
||||||
|
: AVCOL_RANGE_JPEG;
|
||||||
avctx->colorspace = version & 1 ? AVCOL_SPC_UNSPECIFIED : AVCOL_SPC_BT709;
|
avctx->colorspace = version & 1 ? AVCOL_SPC_UNSPECIFIED : AVCOL_SPC_BT709;
|
||||||
|
|
||||||
if ((ret = ff_thread_get_buffer(avctx, &frame, 0)) < 0)
|
if ((ret = ff_thread_get_buffer(avctx, &frame, 0)) < 0)
|
||||||
|
Reference in New Issue
Block a user