On Wed, 12 Mar 2014 15:30:46 +0100, Vittorio Giovara 
<[email protected]> wrote:
> ---
>  libavcodec/ljpegenc.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> 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 "
> -- 
> 1.8.3.4 (Apple Git-47)
> 

Looks ok

-- 
Anton Khirnov
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to