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

This commit is contained in:
Anton Khirnov 2012-09-20 20:00:39 +02:00
parent 8995d34972
commit 1cc569ddda
1 changed files with 2 additions and 0 deletions

View File

@ -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) {