diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-06-13 22:34:19 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-06-15 17:25:46 +0200 |
commit | 751f285152b90faf78d3dde76bc5cee16f093813 (patch) | |
tree | 628d307c0aa463513b7908ae6f8ff92e8bbbaffa /tools/python/convert_from_tensorflow.py | |
parent | 2c738c75218a1dcaec3ec6baa9b0d4b267820812 (diff) | |
download | ffmpeg-751f285152b90faf78d3dde76bc5cee16f093813.tar.gz |
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)
Diffstat (limited to 'tools/python/convert_from_tensorflow.py')
0 files changed, 0 insertions, 0 deletions