diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-03-23 00:49:00 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-03-23 00:50:49 +0100 |
commit | 0c97fd336e17535239ab44d755a0d957dc2688f3 (patch) | |
tree | cbe55396b70307702be651edda38f4c07f5321d3 | |
parent | 7c0748c2db015cf2bf2c4a32a43bd1d2697afc1e (diff) | |
download | ffmpeg-0c97fd336e17535239ab44d755a0d957dc2688f3.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>
-rw-r--r-- | libavformat/mm.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libavformat/mm.c b/libavformat/mm.c index 91d22d09d8..d7308b9a90 100644 --- a/libavformat/mm.c +++ b/libavformat/mm.c @@ -174,7 +174,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; |