1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-29 22:00:58 +02:00
FFmpeg/libavformat
Andreas Rheinhardt 751f285152 avformat/matroskadec: Move AVBufferRef instead of copying, fix memleak
EBML binary elements are already made reference-counted when read;
so when populating the AVStream.attached_pic, one does not need to
allocate a new buffer for the data; instead the current code just
creates a new reference to the underlying AVBuffer. But this can be
improved even further: Just move the already existing reference.

This also fixes a memleak that happens upon error because
matroska_read_close has not been called in this scenario.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
(cherry picked from commit cbe336c9e81e2d9de3a18abef887c9255a9b9da5)
2020-06-15 17:25:46 +02:00
..
2019-12-12 19:25:33 +01:00
2016-07-03 04:37:48 +02:00
2020-05-31 00:55:12 +02: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
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
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
2017-04-25 15:39:10 +02: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
2017-01-30 11:00:58 +01:00
2020-04-08 16:23:07 +02:00
2020-06-04 10:52:42 +02:00
2020-06-14 22:02:34 +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