Jun Zhao
fe38a1e257
avformat/network: make ff_network_init() follow standard AVERROR convention
...
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 >
2026-07-12 00:02:40 +00:00
..
2026-07-12 00:02:40 +00:00
2026-05-31 00:39:51 +00:00
2026-05-20 10:59:02 -03:00
2026-06-23 19:15:57 +02:00
2026-07-10 17:45:09 +00:00
2026-05-23 16:07:39 +02:00
2026-06-24 23:31:53 +02:00
2026-06-24 23:31:54 +02:00
2026-06-24 23:31:53 +02:00
2026-06-24 23:31:53 +02:00
2026-05-20 10:10:38 +00:00
2026-05-16 16:53:51 +00:00
2026-06-23 19:15:57 +02:00
2026-05-28 21:46:48 +00:00
2026-07-05 09:02:40 +02:00
2026-06-23 17:15:02 +02:00
2026-07-12 00:02:40 +00:00
2026-06-23 19:15:57 +02:00
2026-06-23 19:15:57 +02:00
2026-06-23 19:15:57 +02:00
2026-07-07 18:31:35 +00:00
2026-06-23 00:04:42 +00:00
2026-06-23 19:15:57 +02:00
2026-06-23 19:15:57 +02:00
2026-06-12 00:46:32 +00:00
2026-06-23 19:15:57 +02:00
2026-06-23 19:15:57 +02:00
2026-06-23 19:15:57 +02:00
2026-05-19 23:12:31 +00:00
2026-07-05 09:02:40 +02:00
2026-05-29 01:49:20 +00:00
2026-06-05 01:14:02 +00:00
2026-07-02 18:23:18 +02:00
2026-07-06 00:16:18 +00:00
2026-07-05 02:34:41 +00:00
2026-06-24 02:04:02 +00:00
2026-06-23 00:04:42 +00:00
2026-06-23 00:04:42 +00:00
2026-07-05 09:02:40 +02:00
2026-06-28 12:49:17 +02:00
2026-06-28 23:57:40 +00:00
2026-05-23 02:41:31 +08:00
2026-05-16 13:55:22 -03:00
2026-05-21 18:05:39 +00:00
2026-05-23 16:07:50 +02:00
2026-07-05 04:22:13 +00:00
2026-07-04 23:53:01 +00:00
2026-05-15 18:19:40 -07:00
2026-07-03 19:47:10 +00:00
2026-07-12 00:02:40 +00:00
2026-06-23 19:15:57 +02:00
2026-06-23 19:13:06 +02:00
2026-06-16 09:18:23 -03:00
2026-06-16 09:18:24 -03:00
2026-06-30 05:08:44 +00:00
2026-07-02 18:23:18 +02:00
2026-06-23 19:15:57 +02:00
2026-05-23 10:03:33 -05:00
2026-07-12 00:02:40 +00:00
2026-05-30 17:37:28 +00:00
2026-06-23 19:15:57 +02:00
2026-06-17 11:11:18 +00:00
2026-05-19 02:33:28 +00:00
2026-07-05 04:15:26 +00:00
2026-06-15 15:13:53 +00:00
2026-06-01 09:53:54 -03:00
2026-07-05 02:20:37 +00:00
2026-06-23 19:15:57 +02:00
2026-06-30 22:19:24 -03:00
2026-06-23 19:15:57 +02:00
2026-05-17 11:16:56 -03:00
2026-05-31 00:39:51 +00:00
2026-06-23 19:15:57 +02:00
2026-07-02 14:38:22 +00:00
2026-06-15 00:25:34 +00:00
2026-05-31 03:43:29 +00:00
2026-06-23 19:15:57 +02:00
2026-07-10 17:45:09 +00:00
2026-05-29 18:23:06 +00:00
2026-06-23 19:15:57 +02:00
2026-05-09 11:28:46 -03:00
2026-07-12 00:02:40 +00:00
2026-07-02 18:23:18 +02:00
2026-05-23 10:16:38 -05:00
2026-05-23 10:16:38 -05:00
2026-06-23 17:15:02 +02:00
2026-05-22 13:27:18 +00:00
2026-05-22 08:20:13 -05:00
2026-06-23 17:15:02 +02:00
2026-06-23 19:15:57 +02:00
2026-06-23 19:15:57 +02:00
2026-06-04 17:48:12 +02:00
2026-06-23 19:13:06 +02:00
2026-06-11 14:06:20 +00:00
2026-06-11 14:06:20 +00:00
2026-06-03 23:36:13 +00:00
2026-07-02 13:32:21 +00:00
2026-05-18 04:00:18 +00:00
2026-05-21 01:09:37 +00:00
2026-06-14 15:32:48 +00:00
2026-05-21 01:15:30 +00:00
2026-07-12 00:02:40 +00:00
2026-07-12 00:02:40 +00:00
2026-07-12 00:02:40 +00:00
2026-07-12 00:02:40 +00:00
2026-07-02 14:29:42 +00:00
2026-05-25 01:15:28 +00:00
2026-07-09 02:53:53 +00:00
2026-07-02 13:29:42 +00:00
2026-06-23 19:15:57 +02:00
2026-05-09 10:46:35 +00:00
2026-06-05 00:43:20 +02:00
2026-06-23 22:44:20 +08:00
2026-06-25 15:34:04 +03:00
2026-05-27 11:39:32 +00:00
2026-07-12 00:02:40 +00:00
2026-06-23 19:15:57 +02:00
2026-05-23 00:04:46 +00:00
2026-07-12 00:02:40 +00:00
2026-06-23 19:15:57 +02:00
2026-07-10 17:45:09 +00:00
2026-05-19 23:11:33 +00:00
2026-05-23 16:09:55 +02:00
2026-07-11 02:46:34 +00:00
2026-06-30 03:03:30 +00:00
2026-05-19 11:36:10 +02:00
2026-07-04 02:39:08 +00:00
2026-06-24 23:31:53 +02:00