]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/avio.c
rtmpproto: Check the buffer sizes when copying app/playpath strings
[ffmpeg] / libavformat / avio.c
index e07b23609db217864b3fa2b13635c8dbd3698b74..fe42974d3aad837345281114d8680f9325beb12d 100644 (file)
@@ -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;