codec: fix AV1 documentation of extradata

The data correspond to the AV1CodecConfigurationRecord, not the
AV1CodecConfigurationBox (with "av1C").
This commit is contained in:
Steve Lhomme 2024-11-19 12:57:19 +01:00
parent bf20ed4817
commit 208f861adf
2 changed files with 2 additions and 2 deletions

View File

@ -782,7 +782,7 @@ static int ExtractAV1Profile(AVCodecContext *p_context, const es_format_t *fmt_i
if (fmt_in->i_extra > 4)
{
// in ISOBMFF/WebM/Matroska the first 4 bytes are from the AV1CodecConfigurationBox
// in ISOBMFF/WebM/Matroska the first 4 bytes are from the AV1CodecConfigurationRecord
// and then one or more OBU
const uint8_t *obu_start = ((const uint8_t*) fmt_in->p_extra) + 4;
int obu_size = fmt_in->i_extra - 4;

View File

@ -474,7 +474,7 @@ static int OpenDecoder(vlc_object_t *p_this)
av1_OBU_sequence_header_t *sequence_hdr = NULL;
if (dec->fmt_in->i_extra > 4)
{
// in ISOBMFF/WebM/Matroska the first 4 bytes are from the AV1CodecConfigurationBox
// in ISOBMFF/WebM/Matroska the first 4 bytes are from the AV1CodecConfigurationRecord
// and then one or more OBU
const uint8_t *obu_start = ((const uint8_t*) dec->fmt_in->p_extra) + 4;
int obu_size = dec->fmt_in->i_extra - 4;