Commit d1afa728 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/matroskadec: Do not leak queued packets on sync errors

Fixes: memleak
Fixes: clusterfuzz-testcase-minimized-audio_decoder_fuzzer-5649187601121280
Reported-by: 's avatarChris Cunningham <chcunningham@google.com>
Tested-by: 's avatarChris Cunningham <chcunningham@google.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent a9452fe6
...@@ -3541,7 +3541,7 @@ static int matroska_read_packet(AVFormatContext *s, AVPacket *pkt) ...@@ -3541,7 +3541,7 @@ static int matroska_read_packet(AVFormatContext *s, AVPacket *pkt)
ret = matroska_resync(matroska, pos); ret = matroska_resync(matroska, pos);
} }
return ret; return 0;
} }
static int matroska_read_seek(AVFormatContext *s, int stream_index, static int matroska_read_seek(AVFormatContext *s, int stream_index,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment