[vlc-devel] [PATCH 2/2] dav1d: parse the extra data to get the output chroma
Francois Cartegnie
fcvlcdev at free.fr
Thu Sep 10 11:42:10 CEST 2020
Le 10/09/2020 à 11:17, Steve Lhomme a écrit :
> + 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
> + // and then one or more OBU
> + sequence_hdr = AV1_OBU_parse_sequence_header(((uint8_t*)dec->fmt_in.p_extra) + 4,
> + dec->fmt_in.i_extra - 4);
That needs AV1_OBUGetType() check
The only guarantee is to be the seq header when present.
--
Francois Cartegnie
VideoLAN - VLC Developer
More information about the vlc-devel
mailing list