[Ffmpeg-devel] [PATCH] Fix for url_fclose() being called on an already closed file
Colin Ward
hitman
Wed Feb 8 16:10:49 CET 2006
Hi all.
While looking for a resource leak (which turned out to be in my own
code!) I noticed that in libavformat/utils.c::av_open_input_file() it was
possible for url_fclose() to be called twice in a row due to file_opened
not being set back to 0 after the first call to url_fclose(). The chances
of this are minutely tiny, but please find a patch attached anyway.
--
/-------------------------------------------------------------------\
[Hitman/Code HQ - 6502/z80/68000/604e/80x86/ARM coder - Amiga rulez!]
[VZ-200/VIC-20/MZ-700/c16/c64*10/c128*8/Plus-4/CPC464/CD32/500*2 ]
[600/1000/1200*2/A4000/SNES/N64/Dreamcast/Athlon 1100/AmigaOne ]
[Assembly Language: The most fun you can have with your clothes on! ]
\-------------------------------------------------------------------/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: utils.diff
Type: application/octet-stream
Size: 660 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20060208/084305e1/attachment.obj>
More information about the ffmpeg-devel
mailing list