1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-04 06:08:26 +02:00
FFmpeg/libavformat
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
..
2019-12-12 19:25:33 +01:00
2020-05-31 00:55:12 +02:00
2019-12-12 19:25:33 +01:00
2019-12-12 19:25:33 +01:00
2019-12-12 19:25:33 +01:00
2017-09-20 03:31:48 +02:00
2017-09-01 18:52:56 +08:00
2020-03-17 16:05:49 +01:00
2019-12-25 22:10:47 +01:00
2019-12-12 19:25:33 +01:00
2020-03-17 16:04:42 +01:00
2020-03-17 16:08:13 +01:00
2020-05-30 18:02:55 +02:00
2020-05-19 20:09:25 +02:00
2020-05-31 00:55:12 +02:00
2020-05-31 00:55:12 +02:00
2019-12-12 19:25:33 +01:00
2019-10-08 13:47:16 +08:00
2019-12-12 19:25:33 +01:00
2020-04-19 02:37:46 +02:00
2020-02-25 19:57:16 +01:00
2019-12-12 19:25:33 +01:00
2020-05-05 08:20:45 +08:00
2019-09-27 12:15:50 +02:00
2020-03-17 22:46:36 +01:00
2019-12-12 19:25:33 +01: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
2018-02-11 20:03:33 +01:00
2018-02-11 20:03:33 +01:00
2020-05-19 20:09:25 +02:00
2020-02-16 12:54:57 +01:00
2020-01-08 01:32:26 +01:00
2019-12-12 19:25:33 +01:00
2018-05-21 19:43:04 -03:00
2018-05-21 19:43:04 -03:00
2019-03-20 18:38:48 +01:00
2020-04-08 16:23:07 +02:00
2020-06-04 10:52:42 +02:00
2020-06-07 22:01:12 +02:00
2019-12-12 19:25:33 +01:00
2020-03-08 19:08:04 +01:00
2020-02-20 14:41:26 +01:00
2020-03-12 18:47:39 +01:00