[Ffmpeg-cvslog] r8781 - trunk/libavformat/utils.c

michael subversion
Sun Apr 22 13:07:35 CEST 2007


Author: michael
Date: Sun Apr 22 13:07:35 2007
New Revision: 8781

Modified:
   trunk/libavformat/utils.c

Log:
init packet before calling the demuxer
fixed random/uninitalized AVPacket->pos


Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c	(original)
+++ trunk/libavformat/utils.c	Sun Apr 22 13:07:35 2007
@@ -484,6 +484,7 @@ int av_open_input_file(AVFormatContext *
 
 int av_read_packet(AVFormatContext *s, AVPacket *pkt)
 {
+    av_init_packet(pkt);
     return s->iformat->read_packet(s, pkt);
 }
 
@@ -702,6 +703,8 @@ static int av_read_frame_internal(AVForm
     AVStream *st;
     int len, ret, i;
 
+    av_init_packet(pkt);
+
     for(;;) {
         /* select current input stream component */
         st = s->cur_st;




More information about the ffmpeg-cvslog mailing list