mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-02-04 14:30:55 +08:00
libx264: check color_range
This commit is contained in:
@@ -454,7 +454,8 @@ static av_cold int X264_init(AVCodecContext *avctx)
|
||||
|
||||
x4->params.i_slice_count = avctx->slices;
|
||||
|
||||
x4->params.vui.b_fullrange = avctx->pix_fmt == AV_PIX_FMT_YUVJ420P;
|
||||
x4->params.vui.b_fullrange = avctx->pix_fmt == AV_PIX_FMT_YUVJ420P ||
|
||||
avctx->color_range == AVCOL_RANGE_JPEG;
|
||||
|
||||
if (avctx->flags & CODEC_FLAG_GLOBAL_HEADER)
|
||||
x4->params.b_repeat_headers = 0;
|
||||
|
||||
Reference in New Issue
Block a user