Andreas Rheinhardt
c33e56c7a6
avformat/aviobuf: Also return truncated buffer in avio_get_dyn_buf()
...
Two kinds of errors can happen when working with dynamic buffers:
(Re)allocation errors or truncation errors (one has to truncate the
buffer to a size of INT_MAX because avio_close_dyn_buf() and
avio_get_dyn_buf() both return an int). Right now, avio_get_dyn_buf()
returns an empty buffer in either case. But given that
avio_get_dyn_buf() does not destroy the dynamic buffer, one can return
the buffer in case of truncation and let the user check the error flags
and decide for himself instead of hardcoding a single way to proceed
in case of truncation.
(This actually restores the behaviour from before commit
163bb9ac0af495a5cb95441bdb5c02170440d28c.)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2020-06-11 04:03:38 +02:00
..
2020-05-06 12:00:26 +08:00
2020-06-08 12:27:18 +02:00
2020-05-25 07:06:44 +02:00
2020-05-21 09:31:08 +02:00
2020-05-25 07:06:44 +02:00
2020-05-25 05:38:15 +02:00
2020-05-31 00:55:12 +02:00
2020-04-14 18:52:44 +02:00
2020-05-25 07:06:44 +02:00
2020-05-25 07:06:44 +02:00
2020-05-25 13:11:36 +02:00
2020-05-23 01:40:05 +02:00
2020-06-10 12:36:44 +02:00
2020-06-11 04:03:38 +02:00
2020-05-25 13:11:36 +02:00
2020-05-25 13:11:36 +02:00
2020-05-28 12:01:22 +02:00
2020-05-25 13:11:36 +02:00
2020-05-07 19:33:35 +08:00
2020-06-01 18:58:04 +05:30
2020-05-25 07:06:44 +02:00
2020-06-10 11:35:17 +02:00
2020-06-09 00:57:30 +02:00
2020-04-14 19:01:27 +02:00
2020-05-25 11:59:45 +02:00
2020-05-25 11:59:45 +02:00
2020-05-25 11:59:45 +02:00
2020-05-03 13:43:54 +02:00
2020-05-28 11:59:56 +02:00
2020-05-10 22:32:34 +08:00
2020-05-25 13:11:36 +02:00
2020-05-07 23:12:24 +02:00
2020-04-30 08:24:09 +02:00
2020-06-10 09:22:37 +08:00
2020-05-28 11:18:53 +02:00
2020-05-28 11:18:53 +02:00
2020-05-28 11:18:53 +02:00
2020-05-25 13:11:36 +02:00
2020-05-21 22:45:21 +02:00
2020-05-25 13:11:36 +02:00
2020-05-25 07:06:44 +02:00
2020-05-25 07:06:44 +02:00
2020-05-25 07:06:44 +02:00
2020-05-30 18:02:55 +02:00
2020-05-28 12:03:28 +02:00
2020-05-07 07:12:24 +08:00
2020-05-19 20:09:25 +02:00
2020-04-11 18:15:58 +02:00
2020-05-11 19:41:59 -03:00
2020-05-31 00:55:12 +02:00
2020-05-03 05:28:33 +08:00
2020-05-31 00:55:12 +02:00
2020-04-20 21:24:18 +02:00
2020-04-20 21:24:18 +02:00
2020-05-26 06:19:25 +02:00
2020-05-23 07:10:56 +02:00
2020-06-07 22:01:12 +02:00
2020-05-25 13:11:36 +02:00
2020-05-25 13:11:36 +02:00
2020-05-20 15:47:22 +02:00
2020-05-22 22:00:03 +03:00
2020-04-13 10:37:45 -06:00
2020-06-08 22:08:37 +02:00
2020-04-29 15:14:17 +08:00
2020-04-19 02:37:46 +02:00
2020-05-10 01:09:13 +02:00
2020-05-21 09:31:08 +02:00
2020-05-27 22:36:53 +02:00
2020-06-09 01:01:28 +02:00
2020-06-09 01:01:28 +02:00
2020-05-23 05:43:42 +02:00
2020-05-05 08:20:45 +08:00
2020-05-07 23:12:24 +02:00
2020-05-05 19:35:38 +02:00
2020-06-07 01:21:55 +02:00
2020-05-23 19:07:20 +01:00
2020-05-09 16:18:39 +02:00
2020-04-30 23:05:51 +01:00
2020-05-31 00:52:08 +02:00
2020-05-28 12:04:26 +02:00
2020-05-25 07:06:44 +02:00
2020-06-10 12:36:44 +02:00
2020-05-05 20:07:19 +02:00
2020-06-02 22:25:11 +08:00
2020-06-10 12:36:44 +02:00
2020-04-23 20:09:38 +02:00
2020-06-06 00:25:00 +02:00
2020-06-06 00:25:00 +02:00
2020-05-19 20:09:25 +02:00
2020-04-14 18:57:59 +02:00
2020-05-25 13:11:36 +02:00
2020-05-25 13:11:36 +02:00
2020-05-25 13:11:36 +02:00
2020-06-02 22:25:11 +08:00
2020-05-25 13:11:36 +02:00
2020-06-02 22:25:11 +08:00
2020-05-25 13:11:36 +02:00
2020-05-25 13:11:36 +02:00
2020-05-23 07:06:54 +02:00
2020-04-08 16:23:07 +02:00
2020-05-25 13:11:36 +02:00
2020-05-25 13:11:36 +02:00
2020-05-25 13:11:36 +02:00
2020-05-21 09:31:08 +02:00
2020-06-04 10:52:42 +02:00
2020-06-07 22:01:12 +02:00
2020-05-25 13:11:36 +02:00
2020-05-25 13:11:36 +02:00
2020-04-22 12:41:29 +08:00
2020-05-25 13:11:36 +02:00
2020-05-25 13:11:36 +02:00
2020-05-25 13:11:36 +02:00
2020-05-21 05:30:26 +02:00
2020-06-10 09:22:21 +08:00
2020-06-10 12:36:44 +02:00
2020-06-06 00:25:00 +02:00
2020-06-09 00:57:30 +02:00
2020-05-10 22:32:33 +08:00
2020-05-03 13:43:54 +02:00
2020-05-03 13:43:54 +02:00
2020-05-25 07:06:44 +02:00
2020-05-10 22:32:34 +08:00
2020-05-23 07:15:35 +02:00
2020-05-23 06:41:50 +02:00
2020-04-23 20:09:38 +02:00