avformat/matroskadec: Don't keep old blocks
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Thu, 16 May 2019 22:29:59 +0000 (00:29 +0200)
committerJames Almer <jamrial@gmail.com>
Sun, 23 Jun 2019 03:47:50 +0000 (00:47 -0300)
commitffa64a4db8ba37face9508caee0cf25efff70c4a
treec0552429be19ff290881ab6e220717ac87803556
parentf3ca3e7f19c86563c2d3bca82962567396b1cc13
avformat/matroskadec: Don't keep old blocks

Before this commit, the Matroska muxer would read a block when required
to do so, parse the block, create and return the necessary AVPackets and
yet keep the blocks (in a dynamically allocated list), although they
aren't used at all any more. This has been changed. There is no list any
more and the block is immediately discarded after parsing.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavformat/matroskadec.c