Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2010-06-22 17:58:48 +0400
committerMartin Storsjö <martin@martin.st>2010-06-22 17:58:48 +0400
commit9b07a2dc02e9b14e5b18485e7b16333a520b5dbb (patch)
tree7a6fad5f3125dddfb50a48d3ff976936c045f4b6 /libavformat/allformats.c
parente10412a334092bc2884674799318ff7fc60be785 (diff)
Add an av_register_protocol2 function that takes a size parameter
This allows extending the URLProtocol struct without breaking binary compatibility with code compiled with older definitions of the struct. Originally committed as revision 23702 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/allformats.c')
-rw-r--r--libavformat/allformats.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/allformats.c b/libavformat/allformats.c
index 2fd2b4cac3..94ab78c4e7 100644
--- a/libavformat/allformats.c
+++ b/libavformat/allformats.c
@@ -34,7 +34,7 @@
#define REGISTER_PROTOCOL(X,x) { \
extern URLProtocol x##_protocol; \
- if(CONFIG_##X##_PROTOCOL) av_register_protocol(&x##_protocol); }
+ if(CONFIG_##X##_PROTOCOL) av_register_protocol2(&x##_protocol, sizeof(x##_protocol)); }
void av_register_all(void)
{