avformat/matroskadec: Do not leak queued packets on sync errors
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 6 Feb 2019 14:29:38 +0000 (15:29 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 24 Mar 2019 09:39:03 +0000 (10:39 +0100)
commitf84464c6de81b64a2534ebdb00935ddd9e1b80ce
tree74887c1b7c99e746606090755c1e5bd254400618
parent750ec96f667811d32f4a6044db333419b12d79c2
avformat/matroskadec: Do not leak queued packets on sync errors

Fixes: memleak
Fixes: clusterfuzz-testcase-minimized-audio_decoder_fuzzer-5649187601121280

Reported-by: Chris Cunningham <chcunningham@google.com>
Tested-by: Chris Cunningham <chcunningham@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit d1afa7284c3feba4debfebf1b9cf8ad67640e34a)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/matroskadec.c