[FFmpeg-devel] [PATCH] Manage the case when the avctx provided to avcodec_close() is NULL.

Stefano Sabatini stefano.sabatini-lala
Sun Dec 5 18:29:48 CET 2010


On date Sunday 2010-12-05 09:27:39 +0800, avcoder encoded:
Please don't top post.

> if movie->codec_ctx is NULL, there must be something went wrong. the caller
> should check why it is NULL

movie->codec_ctx was never initialized so it's still NULL.
 
> avcodec_close() is not good place to hide the wrong.

Anyway patches dropped, I won't waste more time on this.
-- 
FFmpeg = Fundamental & Fabulous Mind-dumbing Pitiless Exploitable Glue



More information about the ffmpeg-devel mailing list