aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/rtmpdh.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-04-06 00:32:39 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-04-08 11:58:59 +0200
commitfb7cd459778d6ae8975bf26766109ad82859c0e8 (patch)
tree7c379b26caa9571315e471d0a7d9ad2fc9883866 /libavformat/rtmpdh.h
parent44d218e99aba4cbcbbed06bc5065380636623a36 (diff)
downloadffmpeg-fb7cd459778d6ae8975bf26766109ad82859c0e8.tar.gz
avcodec/encode: Fix check for allowed LJPEG pixel formats
The pix_fmts of the LJPEG encoder already contain all supported pixel formats (including the ones only supported when strictness is unofficial or less); yet the check in ff_encode_preinit() ignored this list in case strictness is unofficial or less. But the encoder presumed that it is always applied and blacklists some of the entries in pix_fmts when strictness is > unofficial. The result is that if one uses an entry not on that list and sets strictness to unofficial, said entry passes both checks and this can lead to segfaults lateron (e.g. when using gray). Fix this by removing the exception for LJPEG in ff_encode_preinit(). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> (cherry picked from commit 6e8e9b7633d8b755e7a464a10ba5047f31cbd84d)
Diffstat (limited to 'libavformat/rtmpdh.h')
0 files changed, 0 insertions, 0 deletions