Commit 1cc569dd authored by Anton Khirnov's avatar Anton Khirnov

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

parent 8995d349
...@@ -671,6 +671,8 @@ int ff_read_packet(AVFormatContext *s, AVPacket *pkt) ...@@ -671,6 +671,8 @@ int ff_read_packet(AVFormatContext *s, AVPacket *pkt)
} }
} }
pkt->data = NULL;
pkt->size = 0;
av_init_packet(pkt); av_init_packet(pkt);
ret= s->iformat->read_packet(s, pkt); ret= s->iformat->read_packet(s, pkt);
if (ret < 0) { if (ret < 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment