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

release/1.0
Anton Khirnov 13 years ago
parent 8995d34972
commit 1cc569ddda
  1. 2
      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) {

Loading…
Cancel
Save