[FFmpeg-devel] [PATCH v2 00/11] fix broken CC detection and ffprobe fields (cover letter)
Soft Works
softworkz at hotmail.com
Thu Jan 30 07:54:09 EET 2025
> -----Original Message-----
> From: Marth64 <marth64 at proxyid.net>
> Sent: Thursday, January 30, 2025 6:46 AM
> To: Soft Works <softworkz at hotmail.com>
> Cc: FFmpeg development discussions and patches <ffmpeg-
> devel at ffmpeg.org>; Kieran Kunhya <kieran618 at googlemail.com>
> Subject: Re: [FFmpeg-devel] [PATCH v2 00/11] fix broken CC detection
> and ffprobe fields (cover letter)
>
> That said, the concept of exposing the properties was rejected. I
> understand why since they are internal.
> So the conversation would have to be re-opened, or maybe an
> alternative solution devised.
I found something! It won't require an API change at all.
In AVCodecParameters there's an array member coded_side_data of type AVPacketSideData which is defined like this:
typedef struct AVPacketSideData {
uint8_t *data;
size_t size;
enum AVPacketSideDataType type;
} AVPacketSideData;
and the enum AVPacketSideDataType has this member: AV_PKT_DATA_A53_CC
So, this would allow to add a packet to the codec parameters with AV_PKT_DATA_A53_CC side data - as an indication for the existence of CC data. Without any API change...
What do you think about this?
sw
More information about the ffmpeg-devel
mailing list