mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02: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)
|
if (!s->is_pipe)
|
||||||
avio_close(f[i]);
|
avio_closep(&f[i]);
|
||||||
if (ret[i] > 0)
|
if (ret[i] > 0)
|
||||||
pkt->size += ret[i];
|
pkt->size += ret[i];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user