[FFmpeg-devel] Segmentation fault in libquvi.c
michaelni at gmx.at
Wed Apr 8 14:40:52 CEST 2015
On Wed, Apr 08, 2015 at 10:55:45AM +0200, Gilles Chanteperdrix wrote:
> I just triend libquvi, and get a segmentation fault in the
> libquvi_read_header function, because ff_copy_whitelists is called
> before qc->fmtctx is allocated by avformat_open_input. I added a
> call to avformat_alloc_context() before ff_copy_whitelists and the
> libquvi demuxer works.
> However, I wonder how to fix this properly: the error handling
> labels look backward, so that I am not sure where to free the
> allocated context in case of error.
applied this, yes its correct
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Good people do not need laws to tell them to act responsibly, while bad
people will find a way around the laws. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 181 bytes
Desc: Digital signature
More information about the ffmpeg-devel