[SCM] libav/experimental: libx264: check color_range

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Aug 10 16:02:13 UTC 2014


The following commit has been merged in the experimental branch:
commit 75177b2f5e18aeb74fffd382225dbc6926af0583
Author: Vittorio Giovara <vittorio.giovara at gmail.com>
Date:   Wed Mar 12 12:05:42 2014 +0100

    libx264: check color_range

diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c
index abf0a3e..6233f1e 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;

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list