[FFmpeg-cvslog] avcodec/videotoolbox_hevc: avoid leaking cached_hw_frames_ctx

Pavel Koshevoy git at videolan.org
Sat Aug 24 08:54:42 EEST 2019


ffmpeg | branch: master | Pavel Koshevoy <pkoshevoy at gmail.com> | Tue Aug  6 20:42:15 2019 -0600| [22a14ee753f372bf0ae4bd1e743670f353f7a17a] | committer: Pavel Koshevoy

avcodec/videotoolbox_hevc: avoid leaking cached_hw_frames_ctx

vtctx->cached_hw_frames_ctx is unref'd in videotoolbox_uninit,
but videotoolbox_hevc used ff_videotoolbox_uninit which
doesn't unref cache_hw_frames_ctx.

Signed-off-by: Pavel Koshevoy <pkoshevoy at gmail.com>

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

 libavcodec/videotoolbox.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/videotoolbox.c b/libavcodec/videotoolbox.c
index c718e82cc5..acaeef77dd 100644
--- a/libavcodec/videotoolbox.c
+++ b/libavcodec/videotoolbox.c
@@ -1143,7 +1143,7 @@ const AVHWAccel ff_hevc_videotoolbox_hwaccel = {
     .end_frame      = videotoolbox_hevc_end_frame,
     .frame_params   = videotoolbox_frame_params,
     .init           = videotoolbox_common_init,
-    .uninit         = ff_videotoolbox_uninit,
+    .uninit         = videotoolbox_uninit,
     .priv_data_size = sizeof(VTContext),
 };
 



More information about the ffmpeg-cvslog mailing list