diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2019-02-06 15:29:38 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-02-17 09:12:06 +0100 |
commit | d1afa7284c3feba4debfebf1b9cf8ad67640e34a (patch) | |
tree | f0ad9029f137cfae9ffc75efc29de3d51443b688 /libavformat/matroskadec.c | |
parent | a9452fe6dc2ecf5b2249aae6d770655095b4e232 (diff) | |
download | ffmpeg-d1afa7284c3feba4debfebf1b9cf8ad67640e34a.tar.gz |
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>
Diffstat (limited to 'libavformat/matroskadec.c')
-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 4ad99db7db..d7881d9c1d 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -3541,7 +3541,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, |