diff options
author | Martin Storsjö <martin@martin.st> | 2010-06-22 13:58:48 +0000 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2010-06-22 13:58:48 +0000 |
commit | 9b07a2dc02e9b14e5b18485e7b16333a520b5dbb (patch) | |
tree | 7a6fad5f3125dddfb50a48d3ff976936c045f4b6 /libavformat/allformats.c | |
parent | e10412a334092bc2884674799318ff7fc60be785 (diff) | |
download | ffmpeg-9b07a2dc02e9b14e5b18485e7b16333a520b5dbb.tar.gz |
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.c | 2 |
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) { |