]> git.sesse.net Git - ffmpeg/commit
avcodec/mpegvideo_enc: Remove redundant pixel format checks
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Mon, 5 Apr 2021 20:35:30 +0000 (22:35 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Sat, 10 Apr 2021 01:46:07 +0000 (03:46 +0200)
commit159bcb19b9482a98652ded9eee2751e9de0e9d0f
treee44af11388911406408afc24e06bb0fbdc7686c7
parentd0dcfaef517105cf5f43f686bf2827c412c351ab
avcodec/mpegvideo_enc: Remove redundant pixel format checks

All encoders using ff_mpv_encode_init() already have pix_fmts set
so that the pixel format is already checked in ff_encode_preinit().
The one exception to this is MJPEG whose check remains.

(Btw: The AVCodec.pix_fmts check for AMV is stricter than the check
in ff_mpv_encode_init().)

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