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:38:51 +0000 (10:38 +0100)
commitf9067108708ade40b6989328d22e84a73e408759
treebdeeb0a12a13c3294d606cc3a2c60e2e3d046722
parent3ae6063f5ac38ed6010dcf6e096c3022e6799834
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