[vlc-commits] fourcc: fix libavcodec version check

Tristan Matthews git at videolan.org
Sat Jun 29 17:07:18 CEST 2019


vlc | branch: master | Tristan Matthews <tmatth at videolan.org> | Sat Jun 29 10:40:43 2019 -0400| [aa969254791a45993ba0cc65f15a0d695874b6c6] | committer: Rémi Denis-Courmont

fourcc: fix libavcodec version check

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=aa969254791a45993ba0cc65f15a0d695874b6c6
---

 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 },



More information about the vlc-commits mailing list