[SCM] libav/experimental: ljpeg: 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 bf0d7da7cbbf869605086c2a47cdf87f0a533e24
Author: Vittorio Giovara <vittorio.giovara at gmail.com>
Date:   Wed Mar 12 14:31:51 2014 +0100

    ljpeg: check color_range

diff --git a/libavcodec/ljpegenc.c b/libavcodec/ljpegenc.c
index 7c1b3bc..e111c8c 100644
--- a/libavcodec/ljpegenc.c
+++ b/libavcodec/ljpegenc.c
@@ -266,7 +266,8 @@ static av_cold int ljpeg_encode_init(AVCodecContext *avctx)
 
     if ((avctx->pix_fmt == AV_PIX_FMT_YUV420P ||
          avctx->pix_fmt == AV_PIX_FMT_YUV422P ||
-         avctx->pix_fmt == AV_PIX_FMT_YUV444P) &&
+         avctx->pix_fmt == AV_PIX_FMT_YUV444P ||
+         avctx->color_range == AVCOL_RANGE_MPEG) &&
         avctx->strict_std_compliance > FF_COMPLIANCE_UNOFFICIAL) {
         av_log(avctx, AV_LOG_ERROR,
                "Limited range YUV is non-standard, set strict_std_compliance to "

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list