[FFmpeg-devel] [PATCH] for bug in libavformat/avio.c
Tue Nov 6 16:11:50 CET 2007
i encountered a SIGSEGV in libavformat/avio.c when one registers an own
protocol and lets the url_open fail.
The reason is that url_fopen() calls url_open() and after that
url_fdopen() which calls init_put_byte() to set ByteIOContext::opaque.
If url_open() fails, opaque is 0, but in url_close this is not checked
Attached patch fixes this.
I hope it is ok to post this here, or should it go to roundup?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 352 bytes
Desc: not available
More information about the ffmpeg-devel