[vlc-devel] [RFC PATCH 1/2] packetizer: h264: also update dec extra from pf_packetize

Francois Cartegnie fcvlcdev at free.fr
Tue Apr 21 19:29:42 CEST 2015


Le 20/04/2015 20:18, Thomas Guillem a écrit :
> See #14429
> ---

As I understand, the PPS/SPS are changing due to segment change and
split encoding.

This might happen with all adaptive streaming protocols then.

I'm unsure why we need it as fmt_out codec extra and not in the stream.

If the codec fails to handle new pps/sps, that should be done at decoder
level, no ? (if packetizer is missing, that fix will fail).

> +    /* Change extra only if size changes */
> +    if( i_new_extra == p_dec->fmt_out.i_extra )
> +        return 0;
> +

Decoding will fail if two segments have same sps/pps size sum but
different sps/pps.

Francois




More information about the vlc-devel mailing list