[FFmpeg-devel] [PATCH] Fixed NULL deference in mov muxer

Laurent Aimar fenrir
Tue Sep 2 20:36:21 CEST 2008


On Tue, Sep 02, 2008, Baptiste Coudurier wrote:
> Hi,
> 
> Laurent Aimar wrote:
> > The attached patch fixed a NULL deference in mov muxer for unsupported
> > track.
> Interesting, what do you mean by unsupported ?
> Are you creating a track with no samples ?

Sorry, I didn't meant to send this one, I do not think a fix is needed at all
here.

About my problem:

track->enc was NULL because mov_write_header had failed but I still called
mov_write_trailer.

It is not documented how to react to av_write_header erros but it seems
logical that I should not call av_write_trailer if av_write_header has
failed...

Regards,

-- 
fenrir





More information about the ffmpeg-devel mailing list