Mercurial > libavformat.hg
diff allformats.c @ 6159:3fcaee5cf416 libavformat
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.
author | mstorsjo |
---|---|
date | Tue, 22 Jun 2010 13:58:48 +0000 |
parents | ad41f9ce1fe9 |
children | 21b8d2334030 |
line wrap: on
line diff
--- a/allformats.c Tue Jun 22 08:48:28 2010 +0000 +++ b/allformats.c Tue Jun 22 13:58:48 2010 +0000 @@ -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) {