aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2024-02-10 00:04:16 -0300
committerJames Almer <jamrial@gmail.com>2024-02-10 00:04:16 -0300
commit81c2557691b12ceb79b3ba92aa496f2301ab4d18 (patch)
treef01fec55c3edcd53d6dd1cbe1041058c1fc3d64d
parentdc9d64f7941f5b071283e16fa56e3af86e5c84d6 (diff)
downloadffmpeg-81c2557691b12ceb79b3ba92aa496f2301ab4d18.tar.gz
avcodec: remove some references to avcodec_close
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavcodec/hwaccel_internal.h2
-rw-r--r--libavcodec/pthread_frame.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/hwaccel_internal.h b/libavcodec/hwaccel_internal.h
index 057b07323d..b0cc22bb68 100644
--- a/libavcodec/hwaccel_internal.h
+++ b/libavcodec/hwaccel_internal.h
@@ -128,7 +128,7 @@ typedef struct FFHWAccel {
/**
* Uninitialize the hwaccel private data.
*
- * This will be called from get_format() or avcodec_close(), after hwaccel
+ * This will be called from get_format() or ff_codec_close(), after hwaccel
* and hwaccel_context are already uninitialized.
*/
int (*uninit)(AVCodecContext *avctx);
diff --git a/libavcodec/pthread_frame.c b/libavcodec/pthread_frame.c
index 71e99a5728..2274d3fd7a 100644
--- a/libavcodec/pthread_frame.c
+++ b/libavcodec/pthread_frame.c
@@ -761,7 +761,7 @@ void ff_frame_thread_free(AVCodecContext *avctx, int thread_count)
ff_pthread_free(fctx, thread_ctx_offsets);
/* if we have stashed hwaccel state, move it to the user-facing context,
- * so it will be freed in avcodec_close() */
+ * so it will be freed in ff_codec_close() */
av_assert0(!avctx->hwaccel);
FFSWAP(const AVHWAccel*, avctx->hwaccel, fctx->stash_hwaccel);
FFSWAP(void*, avctx->hwaccel_context, fctx->stash_hwaccel_context);