blob: 1a908ac20c949fbeda4681f624d275f80ef1ecb0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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;
}
|