[FFmpeg-devel] [PATCH] avcodec/h2645_parse: replace three bool arguments in ff_h2645_packet_split with a single flags one

James Almer jamrial at gmail.com
Mon Aug 19 23:16:49 EEST 2024


On 8/19/2024 4:21 PM, Anton Khirnov wrote:
> Quoting James Almer (2024-08-19 18:58:11)
>> diff --git a/libavcodec/h2645_parse.h b/libavcodec/h2645_parse.h
>> index 128dea09ef..849e772115 100644
>> --- a/libavcodec/h2645_parse.h
>> +++ b/libavcodec/h2645_parse.h
>> @@ -93,6 +93,10 @@ typedef struct H2645Packet {
>>   int ff_h2645_extract_rbsp(const uint8_t *src, int length, H2645RBSP *rbsp,
>>                             H2645NAL *nal, int small_padding);
>>   
>> +#define H2645_FLAG_IS_NALFF      (1 << 0)
>> +#define H2645_FLAG_SMALL_PADDING (1 << 1)
>> +#define H2645_FLAG_USE_REF       (1 << 2)
> 
> Make it an enum please

Changed locally.



More information about the ffmpeg-devel mailing list