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:
Michael Niedermayer 2015-01-08 14:50:34 +01:00
parent 50bb9b87ab
commit 26c72d2941
1 changed files with 1 additions and 1 deletions

View File

@ -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];
}