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

Anton Khirnov anton at khirnov.net
Mon Aug 19 22:21:43 EEST 2024


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

-- 
Anton Khirnov


More information about the ffmpeg-devel mailing list