[FFmpeg-devel] [PATCH 1/2] avformat/mov: factorize getting the current item

Anton Khirnov anton at khirnov.net
Mon Sep 30 20:44:26 EEST 2024


Quoting James Almer (2024-09-30 19:41:18)
> Signed-off-by: James Almer <jamrial at gmail.com>
> ---
>  libavformat/mov.c | 58 +++++++++++++++++++++++++++--------------------
>  1 file changed, 34 insertions(+), 24 deletions(-)
> 
> diff --git a/libavformat/mov.c b/libavformat/mov.c
> index 67e87094cf..b3b92bbb91 100644
> --- a/libavformat/mov.c
> +++ b/libavformat/mov.c
> @@ -189,6 +189,24 @@ static int mov_read_mac_string(MOVContext *c, AVIOContext *pb, int len,
>      return p - dst;
>  }
>  
> +/**
> + * Get the current item in the parsing process.
> + */
> +static HEIFItem *get_curr_item(MOVContext *c)

A bit generic, given it's HEIF-specific. How about something like
heif_cur_item()?

-- 
Anton Khirnov


More information about the ffmpeg-devel mailing list