From 4ebc1f06e99117ab2b3fbd243284e2607e35dbf4 Mon Sep 17 00:00:00 2001 From: James Almer Date: Fri, 4 Apr 2025 14:03:05 -0300 Subject: [PATCH] avcodec: remove remaining references to avcodec_close() Signed-off-by: James Almer --- 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);