You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
Merge commit '147f2e91eece6b9021ff5b7f8a3b5ce053566659'
* commit '147f2e91eece6b9021ff5b7f8a3b5ce053566659': avcodec: make sure color_range is properly initialized Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -1530,6 +1530,11 @@ int attribute_align_arg avcodec_open2(AVCodecContext *avctx, const AVCodec *code
|
|||||||
ret = AVERROR(EINVAL);
|
ret = AVERROR(EINVAL);
|
||||||
goto free_and_end;
|
goto free_and_end;
|
||||||
}
|
}
|
||||||
|
if (avctx->codec->pix_fmts[i] == AV_PIX_FMT_YUVJ420P ||
|
||||||
|
avctx->codec->pix_fmts[i] == AV_PIX_FMT_YUVJ422P ||
|
||||||
|
avctx->codec->pix_fmts[i] == AV_PIX_FMT_YUVJ440P ||
|
||||||
|
avctx->codec->pix_fmts[i] == AV_PIX_FMT_YUVJ444P)
|
||||||
|
avctx->color_range = AVCOL_RANGE_JPEG;
|
||||||
}
|
}
|
||||||
if (avctx->codec->supported_samplerates) {
|
if (avctx->codec->supported_samplerates) {
|
||||||
for (i = 0; avctx->codec->supported_samplerates[i] != 0; i++)
|
for (i = 0; avctx->codec->supported_samplerates[i] != 0; i++)
|
||||||
|
Reference in New Issue
Block a user