1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-09 14:14:39 +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
..
2020-05-31 00:55:12 +02: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
2020-04-19 02:37:46 +02:00
2020-05-05 08:20:45 +08: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-08 16:23:07 +02:00
2020-06-04 10:52:42 +02:00
2020-06-07 22:01:12 +02:00