aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-03-23 00:49:00 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-05-06 00:59:45 +0200
commit097ad61100118c34ff5456815cfb8de2bf9cfa0f (patch)
treebaa8fdb8f99216efcccb2efbbedef053f620f568
parentc785a7058aa6c4b89ea1fa02278eee88006dce45 (diff)
downloadffmpeg-097ad61100118c34ff5456815cfb8de2bf9cfa0f.tar.gz
mmdemux: dont set pkt->size to an invalid value.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 0c97fd336e17535239ab44d755a0d957dc2688f3)
-rw-r--r--libavformat/mm.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavformat/mm.c b/libavformat/mm.c
index 8bb933babe..0e40c27f42 100644
--- a/libavformat/mm.c
+++ b/libavformat/mm.c
@@ -175,7 +175,6 @@ static int 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;