]> git.sesse.net Git - ffmpeg/commit
avcodec/ljpegenc: Allow full range yuv420p, yuv422p, yuv444p by default
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Mon, 5 Apr 2021 22:45:25 +0000 (00:45 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Sat, 10 Apr 2021 01:47:08 +0000 (03:47 +0200)
commit48cda7d02b768d965db6582271a2f8591f2a3a10
treef0bc5a9d11f6af4183c473943b1e6284174d5b6b
parent159bcb19b9482a98652ded9eee2751e9de0e9d0f
avcodec/ljpegenc: Allow full range yuv420p, yuv422p, yuv444p by default

The documentation for AV_PIX_FMT_YUVJ420P reads:
"planar YUV 4:2:0, 12bpp, full scale (JPEG), deprecated in favor of
AV_PIX_FMT_YUV420P and setting color_range"
Yet the LJPEG encoder only accepts full scale yuv420p when strictness is
set to unofficial or lower; with default strictness it emits a nonsense
error message that says that limit range YUV is unofficial. This has
been changed to allow full range yuv420p, yuv422p and yuv444p irrespective
of the level of strictness.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
libavcodec/ljpegenc.c