[FFmpeg-cvslog] mmdemux: dont set pkt->size to an invalid value.

Michael Niedermayer git at videolan.org
Fri Mar 23 01:04:17 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Mar 23 00:49:00 2012 +0100| [0c97fd336e17535239ab44d755a0d957dc2688f3] | committer: Michael Niedermayer

mmdemux: dont set pkt->size to an invalid value.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavformat/mm.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/libavformat/mm.c b/libavformat/mm.c
index 91d22d0..d7308b9 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;



More information about the ffmpeg-cvslog mailing list