diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-03-12 12:05:42 +0100 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-03-16 23:31:30 +0100 |
commit | 75177b2f5e18aeb74fffd382225dbc6926af0583 (patch) | |
tree | df7850975f16cf86f46f6265bff15180e5e9913b | |
parent | bf0d7da7cbbf869605086c2a47cdf87f0a533e24 (diff) | |
download | ffmpeg-75177b2f5e18aeb74fffd382225dbc6926af0583.tar.gz |
libx264: check color_range
-rw-r--r-- | libavcodec/libx264.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c index abf0a3e887..6233f1e331 100644 --- a/libavcodec/libx264.c +++ b/libavcodec/libx264.c @@ -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; |