[FFmpeg-devel] [PATCH 2/2] avformat/mpegtsenc: support DVB 6A descriptor for AC-3

Andreas Rheinhardt andreas.rheinhardt at gmail.com
Fri Aug 14 17:33:03 EEST 2020


lance.lmwang at gmail.com:
> From: Limin Wang <lance.lmwang at gmail.com>
> 
> Signed-off-by: Limin Wang <lance.lmwang at gmail.com>
> ---
>  libavformat/mpegts.h    | 16 +++++++++++
>  libavformat/mpegtsenc.c | 76 +++++++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 92 insertions(+)
> 
> diff --git a/libavformat/mpegts.h b/libavformat/mpegts.h
> index fe10b38..951aa61 100644
> --- a/libavformat/mpegts.h
> +++ b/libavformat/mpegts.h
> @@ -175,6 +175,22 @@ typedef struct Mp4Descr {
>      SLConfigDescr sl;
>  } Mp4Descr;
>  
> +/*
> + * ETSI 300 468 descriptor 0x6A(AC-3)
> + * Refer to: ETSI EN 300 468 V1.11.1 (2010-04) (SI in DVB systems)
> + */
> +typedef struct AVDVBAC3Descriptor {
> +    uint8_t  component_type_flag;
> +    uint8_t  bsid_flag;
> +    uint8_t  mainid_flag;
> +    uint8_t  asvc_flag;
> +    uint8_t  reserved_flags;
> +    uint8_t  component_type;
> +    uint8_t  bsid;
> +    uint8_t  mainid;
> +    uint8_t  asvc;
> +} AVDVBAC3Descriptor;
> +

This is not a public struct, ergo it shouldn't have an AV prefix.

- Andreas


More information about the ffmpeg-devel mailing list