[FFmpeg-devel] [PATCH 05/42] avcodec/hevc_ps: Use RefStruct API for parameter sets
Anton Khirnov
anton at khirnov.net
Thu Sep 28 16:13:04 EEST 2023
Quoting Andreas Rheinhardt (2023-09-19 21:56:57)
> Avoids allocations and error checks for these allocations;
> e.g. syncing buffers across threads can't fail any more
> and needn't be checked. It also gets rid of casts and
> indirections.
>
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> ---
> libavcodec/hevc_parser.c | 8 ++--
> libavcodec/hevc_ps.c | 80 ++++++++++++++++----------------------
> libavcodec/hevc_ps.h | 10 ++---
> libavcodec/hevc_sei.c | 5 +--
> libavcodec/hevcdec.c | 36 +++++++----------
> libavcodec/mediacodecdec.c | 6 +--
> libavcodec/videotoolbox.c | 4 +-
> libavcodec/vulkan_hevc.c | 16 ++++----
> 8 files changed, 72 insertions(+), 93 deletions(-)
LGTM
--
Anton Khirnov
More information about the ffmpeg-devel
mailing list