[FFmpeg-devel] [PATCH 1/3] avcodec/ac3_parser: handle more header bits in ff_ac3_parse_header()

Baptiste Coudurier baptiste.coudurier at gmail.com
Fri Jun 6 01:15:58 EEST 2025


> On Jun 5, 2025, at 2:49 PM, James Almer <jamrial at gmail.com> wrote:
> 
> Signed-off-by: James Almer <jamrial at gmail.com>
> ---
> 
> diff --git a/libavcodec/ac3_parser_internal.h b/libavcodec/ac3_parser_internal.h
> index 46814bfb1f..ab5df34003 100644
> --- a/libavcodec/ac3_parser_internal.h
> +++ b/libavcodec/ac3_parser_internal.h
> @@ -46,6 +46,7 @@ typedef struct AC3HeaderInfo {
>     int substreamid;                        ///< substream identification
>     int center_mix_level;                   ///< Center mix level index
>     int surround_mix_level;                 ///< Surround mix level index
> +    uint8_t channel_map_present;
>     uint16_t channel_map;
>     int num_blocks;                         ///< number of audio blocks
>     int dolby_surround_mode;

Am I missing something or this field is not set anywhere ?

Otherwise it looks great :)

— 
Baptiste


More information about the ffmpeg-devel mailing list