summaryrefslogtreecommitdiff
path: root/libavformat/avio.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-10-30 17:48:43 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-10-30 17:48:47 +0100
commit7f019129e1bdeeb7fd0af05dc002b133df530f03 (patch)
tree75e3953c29f71faab22ae4cffc69e5d8acc405a2 /libavformat/avio.c
parent94a80e36d307a5fbd8f2df1fa0cf8699bfad0ac9 (diff)
parent0c5f839693da2276c2da23400f67a67be4ea0af1 (diff)
downloadffmpeg-7f019129e1bdeeb7fd0af05dc002b133df530f03.tar.gz
Merge remote-tracking branch 'qatar/master'
* qatar/master: lavf: Remove a now useless parameter to ffurl_register_protocol Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/avio.c')
-rw-r--r--libavformat/avio.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libavformat/avio.c b/libavformat/avio.c
index b297ce89c6..225d9821a0 100644
--- a/libavformat/avio.c
+++ b/libavformat/avio.c
@@ -94,14 +94,9 @@ const char *avio_enum_protocols(void **opaque, int output)
return avio_enum_protocols(opaque, output);
}
-int ffurl_register_protocol(URLProtocol *protocol, int size)
+int ffurl_register_protocol(URLProtocol *protocol)
{
URLProtocol **p;
- if (size < sizeof(URLProtocol)) {
- URLProtocol *temp = av_mallocz(sizeof(URLProtocol));
- memcpy(temp, protocol, size);
- protocol = temp;
- }
p = &first_protocol;
while (*p != NULL)
p = &(*p)->next;