mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-13 02:20:07 +01:00
avformat: Warn about using network functions without calling avformat_network_init
This is to make developers aware of the fact that they will start using the new init function at some point. Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
@@ -3967,6 +3967,7 @@ int avformat_query_codec(AVOutputFormat *ofmt, enum CodecID codec_id, int std_co
|
||||
int avformat_network_init(void)
|
||||
{
|
||||
#if CONFIG_NETWORK
|
||||
ff_network_inited_globally = 1;
|
||||
int ret;
|
||||
if ((ret = ff_network_init()) < 0)
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user