summarylogtreecommitdiffstats
path: root/libdlna-avformat.patch
diff options
context:
space:
mode:
authorBartłomiej Piotrowski2018-01-07 13:18:17 +0100
committerBartłomiej Piotrowski2018-01-07 13:18:17 +0100
commitbcf5d0ea44af0663d87dc27bf2f2ff05871624b5 (patch)
tree29efa2d224739f02c3aba7ce14bc4ea92b7f3d32 /libdlna-avformat.patch
downloadaur-libdlna.tar.gz
Import from official repositories
Diffstat (limited to 'libdlna-avformat.patch')
-rw-r--r--libdlna-avformat.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/libdlna-avformat.patch b/libdlna-avformat.patch
new file mode 100644
index 00000000000..0434339b850
--- /dev/null
+++ b/libdlna-avformat.patch
@@ -0,0 +1,22 @@
+diff --git a/src/profiles.c b/src/profiles.c
+index 4622c56..ab40ef4 100644
+--- a/src/profiles.c
++++ b/src/profiles.c
+@@ -287,7 +287,7 @@ dlna_guess_media_profile (dlna_t *dlna, const char *filename)
+ return NULL;
+ }
+
+- if (av_find_stream_info (ctx) < 0)
++ if (avformat_find_stream_info (ctx, NULL) < 0)
+ {
+ if (dlna->verbosity)
+ fprintf (stderr, "can't find stream info\n");
+@@ -334,7 +334,7 @@ dlna_guess_media_profile (dlna_t *dlna, const char *filename)
+ p = p->next;
+ }
+
+- av_close_input_file (ctx);
++ avformat_close_input (&ctx);
+ free (codecs);
+ return profile;
+ }