[FFmpeg-cvslog] lavf: zero data/size of the packet passed to read_packet().

Anton Khirnov git at videolan.org
Fri Sep 21 14:48:53 CEST 2012


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Thu Sep 20 20:00:39 2012 +0200| [1cc569dddadfedabe970ce7408dba7ddf381e98b] | committer: Anton Khirnov

lavf: zero data/size of the packet passed to read_packet().

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

 libavformat/utils.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index 64be7c8..9dd58cc 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -671,6 +671,8 @@ int ff_read_packet(AVFormatContext *s, AVPacket *pkt)
             }
         }
 
+        pkt->data = NULL;
+        pkt->size = 0;
         av_init_packet(pkt);
         ret= s->iformat->read_packet(s, pkt);
         if (ret < 0) {



More information about the ffmpeg-cvslog mailing list