From 1cc569dddadfedabe970ce7408dba7ddf381e98b Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Thu, 20 Sep 2012 20:00:39 +0200 Subject: [PATCH] lavf: zero data/size of the packet passed to read_packet(). --- libavformat/utils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/utils.c b/libavformat/utils.c index 64be7c8700..9dd58cc152 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) {