aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-06-13 22:34:19 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-06-15 15:44:27 +0200
commitcbe336c9e81e2d9de3a18abef887c9255a9b9da5 (patch)
tree3a2187953b62ad244b871db8d392d65e36b8ea8f /tests
parentb737575c76ff33ef5ffd602ebf3e30cc71ec536c (diff)
downloadffmpeg-cbe336c9e81e2d9de3a18abef887c9255a9b9da5.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>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions