[vlc-commits] [Git][videolan/vlc][master] codec: fix AV1 documentation of extradata
Steve Lhomme (@robUx4)
gitlab at videolan.org
Wed Nov 20 13:26:28 UTC 2024
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
208f861a by Steve Lhomme at 2024-11-20T12:09:50+00:00
codec: fix AV1 documentation of extradata
The data correspond to the AV1CodecConfigurationRecord, not the
AV1CodecConfigurationBox (with "av1C").
- - - - -
2 changed files:
- modules/codec/avcodec/video.c
- modules/codec/dav1d.c
Changes:
=====================================
modules/codec/avcodec/video.c
=====================================
@@ -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;
=====================================
modules/codec/dav1d.c
=====================================
@@ -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;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/208f861adfa0e0e5b415f7a08c3ca1f794a72f7a
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/208f861adfa0e0e5b415f7a08c3ca1f794a72f7a
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list