Since a247ac640df3da573cd661065bf53f37863e2b46, allcodecs.c contained two lines that matched the regex used by find_filters_extern in configure; as a result, libx264 appeared twice the list of codecs (if enabled). Fix this by using only one matching line by adding a preprocessor define for the part that differed in the two old lines: The const qualifier.
Unified · Split
| @@ -766,10 +766,11 @@ extern const AVCodec ff_libx262_encoder; · 765 unmodified lines | |||
| 766 | #if CONFIG_LIBX264_ENCODER | 766 | #if CONFIG_LIBX264_ENCODER |
| 767 | #include <x264.h> | 767 | #include <x264.h> |
| 768 | #if X264_BUILD < 153 | 768 | #if X264_BUILD < 153 |
| 769 | extern AVCodec ff_libx264_encoder; | 769 | #define LIBX264_CONST |
| 770 | #else | 770 | #else |
| 771 | extern const AVCodec ff_libx264_encoder; | 771 | #define LIBX264_CONST const |
| 772 | #endif | 772 | #endif |
| 773 | extern LIBX264_CONST AVCodec ff_libx264_encoder; | ||
| 773 | #endif | 774 | #endif |
| 774 | extern const AVCodec ff_libx264rgb_encoder; | 775 | extern const AVCodec ff_libx264rgb_encoder; |
| 775 | extern AVCodec ff_libx265_encoder; | 776 | extern AVCodec ff_libx265_encoder; |