[FFmpeg-devel] [PATCH] Document avcodec_close().
Stefano Sabatini
stefano.sabatini-lala
Sat Dec 4 19:38:54 CET 2010
---
libavcodec/avcodec.h | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index ec17911..beb1f04 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -3731,6 +3731,13 @@ int avcodec_encode_video(AVCodecContext *avctx, uint8_t *buf, int buf_size,
int avcodec_encode_subtitle(AVCodecContext *avctx, uint8_t *buf, int buf_size,
const AVSubtitle *sub);
+/**
+ * Close the codec context and release all the referenced structures.
+ * If avctx is NULL then do nothing.
+ *
+ * @return 0 in case of success, a negative AVERROR code in case of
+ * failure
+ */
int avcodec_close(AVCodecContext *avctx);
/**
--
1.7.2.3
More information about the ffmpeg-devel
mailing list