[FFmpeg-cvslog] avcodec: remove remaining references to avcodec_close()

James Almer git at videolan.org
Fri Apr 4 20:04:03 EEST 2025


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Fri Apr  4 14:03:05 2025 -0300| [4ebc1f06e99117ab2b3fbd243284e2607e35dbf4] | committer: James Almer

avcodec: remove remaining references to avcodec_close()

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4ebc1f06e99117ab2b3fbd243284e2607e35dbf4
---

 libavcodec/avcodec.h | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 6b68afe93a..a004cccd2d 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -510,9 +510,6 @@ typedef struct AVCodecContext {
      *
      * After being set, the array is owned by the codec and freed in
      * avcodec_free_context().
-     *
-     * @warning the deprecated avcodec_close() function DOES NOT free this array
-     * for decoding, it must be freed manually by the caller.
      */
     uint8_t *extradata;
     int extradata_size;
@@ -1737,9 +1734,6 @@ typedef struct AVCodecContext {
      *
      * After being set, the array is owned by the codec and freed in
      * avcodec_free_context().
-     *
-     * @warning the deprecated avcodec_close() function DOES NOT free this array
-     * for encoding, it must be freed manually by the caller.
      */
     int subtitle_header_size;
     uint8_t *subtitle_header;
@@ -2941,8 +2935,8 @@ void av_fast_padded_malloc(void *ptr, unsigned int *size, size_t min_size);
 void av_fast_padded_mallocz(void *ptr, unsigned int *size, size_t min_size);
 
 /**
- * @return a positive value if s is open (i.e. avcodec_open2() was called on it
- * with no corresponding avcodec_close()), 0 otherwise.
+ * @return a positive value if s is open (i.e. avcodec_open2() was called on it),
+ * 0 otherwise.
  */
 int avcodec_is_open(AVCodecContext *s);
 



More information about the ffmpeg-cvslog mailing list