libx264: check color_range

pull/293/head
Vittorio Giovara 11 years ago
parent bf0d7da7cb
commit 75177b2f5e
  1. 3
      libavcodec/libx264.c

@ -454,7 +454,8 @@ static av_cold int X264_init(AVCodecContext *avctx)
x4->params.i_slice_count = avctx->slices; 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) if (avctx->flags & CODEC_FLAG_GLOBAL_HEADER)
x4->params.b_repeat_headers = 0; x4->params.b_repeat_headers = 0;

Loading…
Cancel
Save