Quoting Vittorio Giovara (2016-07-18 22:34:38) > --- > Alternatively we could remove the last two places that still use > avcodec_close() (lavf and avconv), and deprecate it. > Vittorio > > libavcodec/avcodec.h | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h > index ace761d..e3c6070 100644 > --- a/libavcodec/avcodec.h > +++ b/libavcodec/avcodec.h > @@ -3647,6 +3647,9 @@ AVCodecContext *avcodec_alloc_context3(const AVCodec > *codec); > /** > * Free the codec context and everything associated with it and write NULL to > * the provided pointer. > + * > + * @note There is no need to call avcodec_close() beforehand: this function > + * will properly release any codec resource associated with the > context. > */ > void avcodec_free_context(AVCodecContext **avctx);
There is already a note in the avcodec_close() doxy. Adding yet another one here means we'll have to remember to remove it when avcodec_close() is dropped. -- Anton Khirnov _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
