1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

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

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