aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2022-08-24 17:03:59 +0200
committerGravatar Christian Hesse <mail@eworm.de>2022-08-24 17:03:59 +0200
commit939f69cec2789fc36c03f9c598c030af369452df (patch)
tree244565456e14b487b5ef9584895c720f4988227c
parentf416f3ea28e156e421b7e288fff26cca6bbbd456 (diff)
downloadextract-artwork-939f69cec2789fc36c03f9c598c030af369452df.tar.gz
extract-artwork-939f69cec2789fc36c03f9c598c030af369452df.tar.zst
fix libav version check
Checking with LIBAVCODEC_VERSION_INT is stupid if we do not include libavcodec... Let's use LIBAVFORMAT_VERSION_INT instead. This broke with commit 68576d8903da21d0ae4e6f00ca3f71dd98f0b320.
-rw-r--r--extract-artwork.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extract-artwork.c b/extract-artwork.c
index 84d2120..d426043 100644
--- a/extract-artwork.c
+++ b/extract-artwork.c
@@ -34,7 +34,7 @@ int main(int argc, char **argv) {
}
/* libav */
-#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58, 9, 100)
+#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(58, 9, 100)
av_register_all();
#endif