add FF_API_URL_SPLIT define to disable the deprecated ff_url_split() function
Originally committed as revision 25482 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
8ef30ac1f3
commit
88e44314ea
@ -60,6 +60,9 @@
|
|||||||
#ifndef FF_API_UDP_GET_FILE
|
#ifndef FF_API_UDP_GET_FILE
|
||||||
#define FF_API_UDP_GET_FILE (LIBAVFORMAT_VERSION_MAJOR < 53)
|
#define FF_API_UDP_GET_FILE (LIBAVFORMAT_VERSION_MAJOR < 53)
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef FF_API_URL_SPLIT
|
||||||
|
#define FF_API_URL_SPLIT (LIBAVFORMAT_VERSION_MAJOR < 53)
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* I return the LIBAVFORMAT_VERSION_INT constant. You got
|
* I return the LIBAVFORMAT_VERSION_INT constant. You got
|
||||||
|
@ -101,7 +101,7 @@ int ff_probe_input_buffer(ByteIOContext **pb, AVInputFormat **fmt,
|
|||||||
const char *filename, void *logctx,
|
const char *filename, void *logctx,
|
||||||
unsigned int offset, unsigned int max_probe_size);
|
unsigned int offset, unsigned int max_probe_size);
|
||||||
|
|
||||||
#if LIBAVFORMAT_VERSION_MAJOR < 53
|
#if FF_API_URL_SPLIT
|
||||||
/**
|
/**
|
||||||
* @deprecated use av_url_split() instead
|
* @deprecated use av_url_split() instead
|
||||||
*/
|
*/
|
||||||
|
@ -3526,7 +3526,7 @@ void av_pkt_dump_log(void *avcl, int level, AVPacket *pkt, int dump_payload)
|
|||||||
pkt_dump_internal(avcl, NULL, level, pkt, dump_payload);
|
pkt_dump_internal(avcl, NULL, level, pkt, dump_payload);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if LIBAVFORMAT_VERSION_MAJOR < 53
|
#if FF_API_URL_SPLIT
|
||||||
attribute_deprecated
|
attribute_deprecated
|
||||||
void ff_url_split(char *proto, int proto_size,
|
void ff_url_split(char *proto, int proto_size,
|
||||||
char *authorization, int authorization_size,
|
char *authorization, int authorization_size,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user