[Ffmpeg-devel] [PATCH] bitstream filter error handling

Alex Beregszaszi alex
Sat Apr 21 02:40:48 CEST 2007


Hi,

> > while trying the bitstream filters, a dummy commandline produced a
> > crash. I tried mp3comp filter mp2 output, thus it printed "not standards
> > compliant" and crashed.
> > 
> > Debug showed that the filter returns -1 as error, which was not handled
> > in ffmpeg.c:write_frame.
> > 
> > The attached simple patch solves the bug for me.
> 
> hmm, isnt it better if an error in a bitstream filter would cause the
> encoding to abort?

Both versions are ok for me, just fix this crash :)

--
Alex Beregszaszi






More information about the ffmpeg-devel mailing list