Originally committed as revision 25482 to svn://svn.ffmpeg.org/ffmpeg/trunk
| ... | ... |
@@ -60,6 +60,9 @@ |
| 60 | 60 |
#ifndef FF_API_UDP_GET_FILE |
| 61 | 61 |
#define FF_API_UDP_GET_FILE (LIBAVFORMAT_VERSION_MAJOR < 53) |
| 62 | 62 |
#endif |
| 63 |
+#ifndef FF_API_URL_SPLIT |
|
| 64 |
+#define FF_API_URL_SPLIT (LIBAVFORMAT_VERSION_MAJOR < 53) |
|
| 65 |
+#endif |
|
| 63 | 66 |
|
| 64 | 67 |
/** |
| 65 | 68 |
* I return the LIBAVFORMAT_VERSION_INT constant. You got |
| ... | ... |
@@ -101,7 +101,7 @@ int ff_probe_input_buffer(ByteIOContext **pb, AVInputFormat **fmt, |
| 101 | 101 |
const char *filename, void *logctx, |
| 102 | 102 |
unsigned int offset, unsigned int max_probe_size); |
| 103 | 103 |
|
| 104 |
-#if LIBAVFORMAT_VERSION_MAJOR < 53 |
|
| 104 |
+#if FF_API_URL_SPLIT |
|
| 105 | 105 |
/** |
| 106 | 106 |
* @deprecated use av_url_split() instead |
| 107 | 107 |
*/ |
| ... | ... |
@@ -3526,7 +3526,7 @@ void av_pkt_dump_log(void *avcl, int level, AVPacket *pkt, int dump_payload) |
| 3526 | 3526 |
pkt_dump_internal(avcl, NULL, level, pkt, dump_payload); |
| 3527 | 3527 |
} |
| 3528 | 3528 |
|
| 3529 |
-#if LIBAVFORMAT_VERSION_MAJOR < 53 |
|
| 3529 |
+#if FF_API_URL_SPLIT |
|
| 3530 | 3530 |
attribute_deprecated |
| 3531 | 3531 |
void ff_url_split(char *proto, int proto_size, |
| 3532 | 3532 |
char *authorization, int authorization_size, |