]> git.sesse.net Git - ffmpeg/commit
avcodec/libx264: Don't use init_static_data for newer versions
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Thu, 25 Feb 2021 08:25:51 +0000 (09:25 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 28 Feb 2021 16:52:12 +0000 (17:52 +0100)
commitf9b5cef1d3cdb361893c88f6b626ef767fe6cee4
treea7985bcbd9998b27d1ae7cf2ee8a4f673ec55ef9
parent546e3964ddd3762b22860cc581e23ba6d1443a95
avcodec/libx264: Don't use init_static_data for newer versions

x264 versions >= 153 can support multiple bitdepths; they also don't
export x264_bit_depth any more. The actual check whether a bitdepth
is supported is therefore performed at runtime in x264_encoder_open.
Ergo it is unnecessary to use init_static_data for these versions:
One can already set ff_libx264_encoder.pix_fmts to the value that
X264_init_static always sets it to.

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