]> git.sesse.net Git - ffmpeg/commit
avformat/ipmovie: Avoid reading packets during read_header
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Thu, 18 Mar 2021 19:29:42 +0000 (20:29 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 23 Mar 2021 23:21:32 +0000 (00:21 +0100)
commit0ce702d9996490bcc6447e5330ec39f7293f4e7e
tree8e42a78a02e7836024fc2c70458b2ddc01f604fa
parentda9eed79b9255c0b26110d731880a531fc7b22ef
avformat/ipmovie: Avoid reading packets during read_header

They will be discarded anyway because this can only happen
for invalid data. This already implies that the pkt won't be used
at all when parsing the very first chunk when reading the header,
so one can use NULL as argument and remove the av_packet_unref()
on error.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavformat/ipmovie.c