mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-27 01:42:20 +00:00
avformat/img2dec: Use avio_closep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
50bb9b87ab
commit
26c72d2941
@ -469,7 +469,7 @@ int ff_img_read_packet(AVFormatContext *s1, AVPacket *pkt)
|
||||
}
|
||||
}
|
||||
if (!s->is_pipe)
|
||||
avio_close(f[i]);
|
||||
avio_closep(&f[i]);
|
||||
if (ret[i] > 0)
|
||||
pkt->size += ret[i];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user