ffmpeg | branch: release/3.2 | Michael Niedermayer <[email protected]> | 
Wed Feb  6 15:29:38 2019 +0100| [f84464c6de81b64a2534ebdb00935ddd9e1b80ce] | 
committer: Michael Niedermayer

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

Fixes: memleak
Fixes: clusterfuzz-testcase-minimized-audio_decoder_fuzzer-5649187601121280

Reported-by: Chris Cunningham <[email protected]>
Tested-by: Chris Cunningham <[email protected]>
Signed-off-by: Michael Niedermayer <[email protected]>
(cherry picked from commit d1afa7284c3feba4debfebf1b9cf8ad67640e34a)
Signed-off-by: Michael Niedermayer <[email protected]>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f84464c6de81b64a2534ebdb00935ddd9e1b80ce
---

 libavformat/matroskadec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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,

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to