aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2019-02-06 15:29:38 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2019-03-24 10:39:03 +0100
commitf84464c6de81b64a2534ebdb00935ddd9e1b80ce (patch)
tree74887c1b7c99e746606090755c1e5bd254400618
parent750ec96f667811d32f4a6044db333419b12d79c2 (diff)
downloadffmpeg-f84464c6de81b64a2534ebdb00935ddd9e1b80ce.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> (cherry picked from commit d1afa7284c3feba4debfebf1b9cf8ad67640e34a) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavformat/matroskadec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index d6e093e8f7..6b95c58299 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -3363,7 +3363,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,