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

James Almer jamrial at gmail.com
Mon Sep 30 20:51:21 EEST 2024


On 9/30/2024 2:44 PM, Anton Khirnov wrote:
> 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()?

Sure, changed locally.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20240930/3391a313/attachment.sig>


More information about the ffmpeg-devel mailing list