From 1cc569dddadfedabe970ce7408dba7ddf381e98b Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Thu, 20 Sep 2012 20:00:39 +0200 Subject: lavf: zero data/size of the packet passed to read_packet(). --- libavformat/utils.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavformat') 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) { -- cgit v1.1