diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-09-20 20:00:39 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-09-21 09:14:37 +0200 |
commit | 1cc569dddadfedabe970ce7408dba7ddf381e98b (patch) | |
tree | 6fb9cb7b1a0c0eb28cbc4d788daf7aa51dac45ec | |
parent | 8995d34972dc1092a5576c8d26e9b583f9dc2040 (diff) | |
download | ffmpeg-1cc569dddadfedabe970ce7408dba7ddf381e98b.tar.gz |
lavf: zero data/size of the packet passed to read_packet().
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) { |