Skip to content

Commit

Permalink
avformat/matroskadec: Do not leak queued packets on sync errors
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
michaelni committed Feb 17, 2019
1 parent a9452fe commit d1afa72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libavformat/matroskadec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d1afa72

Please sign in to comment.