[vlc-devel] [PATCH] fourcc: fix libavcodec version check

Tristan Matthews tmatth at videolan.org
Sat Jun 29 16:40:43 CEST 2019


RĂ©mi: can you try with this patch?

---
 modules/codec/avcodec/fourcc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/avcodec/fourcc.c b/modules/codec/avcodec/fourcc.c
index 4a5dbc9c5f..18fc6aa3b8 100644
--- a/modules/codec/avcodec/fourcc.c
+++ b/modules/codec/avcodec/fourcc.c
@@ -201,7 +201,7 @@ static const struct vlc_avcodec_fourcc video_codecs[] =
     /* AV_CODEC_ID_IFF_BYTERUN1 */
     { VLC_CODEC_KGV1, AV_CODEC_ID_KGV1 },
     { VLC_CODEC_YOP, AV_CODEC_ID_YOP },
-#if LIBAVCODEC_VERSION_CHECK( 58, 0, 0, 53, 100 )
+#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 58, 53, 100 ) && LIBAVCODEC_VERSION_MICRO >= 100
     { VLC_CODEC_VP4, AV_CODEC_ID_VP4 },
 #endif
     { VLC_CODEC_VP8, AV_CODEC_ID_VP8 },
-- 
2.19.1



More information about the vlc-devel mailing list