1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-04 06:08:26 +02:00
FFmpeg/libavformat
Andreas Rheinhardt 6397b4d6a2 avformat/vorbiscomment: Switch to AVIOContext from bytestream API
Up until now ff_vorbiscomment_write() used the bytestream API to write
VorbisComments. Therefore the caller had to provide a sufficiently large
buffer to write the output.

Yet two of the three callers (namely the FLAC and the Matroska muxer)
actually want the output to be written via an AVIOContext; therefore
they allocated buffers of the right size just for this purpose (i.e.
they get freed immediately afterwards). Only the Ogg muxer actually
wants a buffer. But given that it is easy to wrap a buffer into an
AVIOContext this commit changes ff_vorbiscomment_write() to use an
AVIOContext for its output.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2020-05-03 13:43:54 +02:00
..
2020-01-08 01:32:26 +01:00
2019-12-12 19:25:33 +01:00
2020-03-17 16:08:13 +01:00
2019-12-12 19:25:33 +01:00
2020-03-17 22:46:36 +01:00
2019-12-12 19:25:33 +01:00
2019-12-12 19:25:33 +01:00
2020-03-17 16:05:49 +01:00
2019-12-25 22:10:47 +01:00
2020-04-23 08:05:56 +08: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
2019-12-11 16:24:16 +01:00
2020-02-15 10:55:33 +01:00
2020-05-01 08:35:48 +02:00
2019-12-12 19:25:33 +01:00
2019-10-08 13:47:16 +08:00
2020-04-26 14:34:03 +02: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
2019-09-27 12:15:50 +02:00
2020-03-14 22:07:27 +01: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
2018-02-11 20:03:33 +01:00
2018-02-11 20:03:33 +01:00
2020-04-10 12:22:09 +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
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