You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-libs/libdlna/files/libdlna-0.2.4-ffmpeg.patch

23 lines
565 B

Adapt to the latest ffmpeg API
Gentoo bugzilla: https://bugs.gentoo.org/show_bug.cgi?id=540150
Signed-off-by: Markos Chandras <hwoarang@gentoo.org>
Index: libdlna-0.2.4/src/profiles.c
===================================================================
--- libdlna-0.2.4.orig/src/profiles.c
+++ libdlna-0.2.4/src/profiles.c
@@ -334,7 +334,12 @@ dlna_guess_media_profile (dlna_t *dlna,
p = p->next;
}
+#if LIBAVFORMAT_VERSION_MAJOR < 54
av_close_input_file (ctx);
+#else
+ avformat_close_input(&ctx);
+#endif
+
free (codecs);
return profile;
}