From 123e925956772a990c69dfbc25437ea8daf3b804 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 23 Mar 2012 00:49:00 +0100 Subject: [PATCH] mmdemux: dont set pkt->size to an invalid value. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer (cherry picked from commit 0c97fd336e17535239ab44d755a0d957dc2688f3) --- libavformat/mm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libavformat/mm.c b/libavformat/mm.c index 6c621ab493..1868e900bc 100644 --- a/libavformat/mm.c +++ b/libavformat/mm.c @@ -162,7 +162,6 @@ static int mm_read_packet(AVFormatContext *s, case MM_TYPE_AUDIO : if (av_get_packet(s->pb, pkt, length)<0) return AVERROR(ENOMEM); - pkt->size = length; pkt->stream_index = 1; pkt->pts = mm->audio_pts++; return 0;