]> git.sesse.net Git - ffmpeg/commit
avcodec/mjpegenc: Include all supported pix_fmts in mpegenc pix_fmts
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Tue, 6 Apr 2021 01:01:14 +0000 (03:01 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Sat, 10 Apr 2021 01:48:41 +0000 (03:48 +0200)
commit059fc2d9da5364627613fb3e6424079e14dbdfd3
treeed91afb8711dd2a9f62327cdad8deda50b07f2f7
parent48cda7d02b768d965db6582271a2f8591f2a3a10
avcodec/mjpegenc: Include all supported pix_fmts in mpegenc pix_fmts

Currently said list contains only the pixel formats that are always
supported irrespective of the range and the value of
strict_std_compliance. This makes the MJPEG encoder an outlier as all
other codecs put all potentially supported pixel formats into said list
and error out if the chosen pixel format is unsupported. This commit
brings it therefore in line with the other encoders.

The behaviour of fftools/ffmpeg_filter.c has been preserved. A more
informed decision would be possible if colour range were available
at this point, but it isn't.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
fftools/ffmpeg_filter.c
libavcodec/encode.c
libavcodec/ljpegenc.c
libavcodec/mjpegenc.c
libavcodec/mjpegenc_common.c
libavcodec/mjpegenc_common.h
libavcodec/mpegvideo_enc.c