mirror of
https://github.com/videolan/vlc.git
synced 2024-11-23 18:03:48 +08:00
codec: fix AV1 documentation of extradata
The data correspond to the AV1CodecConfigurationRecord, not the AV1CodecConfigurationBox (with "av1C").
This commit is contained in:
parent
bf20ed4817
commit
208f861adf
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user