summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/libdlna/files/libdlna-0.2.4-ffmpeg.patch')
-rw-r--r--media-libs/libdlna/files/libdlna-0.2.4-ffmpeg.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/media-libs/libdlna/files/libdlna-0.2.4-ffmpeg.patch b/media-libs/libdlna/files/libdlna-0.2.4-ffmpeg.patch
new file mode 100644
index 000000000000..1a908ac20c94
--- /dev/null
+++ b/media-libs/libdlna/files/libdlna-0.2.4-ffmpeg.patch
@@ -0,0 +1,22 @@
+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;
+ }