mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-08-08 09:01:14 +00:00
ff_network_init() used to return 0 on failure and 1 on success, requiring callers to check !ff_network_init(). Change it to return a negative AVERROR(EIO) on failure and 0 on success, matching the standard FFmpeg convention where negative values indicate errors. Update all callers (avio.c, rtsp.c, rtspdec.c, sapdec.c, sapenc.c, utils.c) to use the standard (ret = ff_network_init()) < 0 pattern. Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
18 KiB
18 KiB