You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
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@gmail.com>
This commit is contained in:
@@ -1143,7 +1143,7 @@ const AVHWAccel ff_hevc_videotoolbox_hwaccel = {
|
|||||||
.end_frame = videotoolbox_hevc_end_frame,
|
.end_frame = videotoolbox_hevc_end_frame,
|
||||||
.frame_params = videotoolbox_frame_params,
|
.frame_params = videotoolbox_frame_params,
|
||||||
.init = videotoolbox_common_init,
|
.init = videotoolbox_common_init,
|
||||||
.uninit = ff_videotoolbox_uninit,
|
.uninit = videotoolbox_uninit,
|
||||||
.priv_data_size = sizeof(VTContext),
|
.priv_data_size = sizeof(VTContext),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user