Browse Source

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

tags/n1.0
Anton Khirnov 12 years ago
parent
commit
1cc569ddda
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/utils.c

+ 2
- 0
libavformat/utils.c View File

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


Loading…
Cancel
Save