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>
Wed, 13 Mar 2019 23:24:44 +0000 (00:24 +0100)
commit4d1fcd734e877b0bcb635664dbc7a0a0ff0627ec
tree91f4a57b6258ec2ee1fc99eb1e0552857c066cdc
parent8066cb3556e77570b72b28ccef9613ea0887d5ac
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