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:
parent
8995d34972
commit
1cc569ddda
@ -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…
Reference in New Issue
Block a user