diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2019-02-06 17:29:38 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-03-21 12:42:52 +0300 |
commit | c50ba3cb6cec30daa09bb579295ac619498de9ac (patch) | |
tree | 2c2bca3a642fe41d3fb0b15fe6fe89935c86e259 /libavformat | |
parent | 8183623ca38cbeb5bceddc874f218fec66bd802b (diff) |
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>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/matroskadec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index 1ded431b80..37c9a1c11e 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -3537,7 +3537,7 @@ static int matroska_read_packet(AVFormatContext *s, AVPacket *pkt) ret = matroska_resync(matroska, pos); } - return ret; + return 0; } static int matroska_read_seek(AVFormatContext *s, int stream_index, |