[FFmpeg-devel] Segmentation fault in libquvi.c

wm4 nfxjfg at googlemail.com
Wed Apr 8 16:43:32 CEST 2015


On Wed, 8 Apr 2015 16:18:29 +0200
Michael Niedermayer <michaelni at gmx.at> wrote:

> On Wed, Apr 08, 2015 at 03:37:03PM +0200, Gilles Chanteperdrix wrote:
> > On Wed, Apr 08, 2015 at 02:40:52PM +0200, Michael Niedermayer wrote:
> > > On Wed, Apr 08, 2015 at 10:55:45AM +0200, Gilles Chanteperdrix wrote:
> > > > Hi, 
> > > > 
> > > > 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
> > 
> > Ok, there are other details missing, the stream does not get a
> > duration, start_time and bitrate. This can easily be fixed, but as
> > wm4 said libquvi seems an abandoned project.
> > 
> 
> > Would there be any interest in a solution based on youtube-dl? It
> 
> sure
> 
> [...]
> 

It has no place in a low level demuxer library.


More information about the ffmpeg-devel mailing list