[vlc-devel] [RFC PATCH 1/2] packetizer: h264: also update dec extra from pf_packetize
Thomas Guillem
thomas at gllm.fr
Wed Apr 22 09:04:42 CEST 2015
On Tue, Apr 21, 2015, at 19:29, Francois Cartegnie wrote:
> 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).
Therefore, decoder must wait for valid pps/sps in the p_block given to
DecodeVideo ?
>
> > + /* 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.
There is first a limitation to fix in src/input/decoder.c: the extra
will be changed only one time, see "if( p_packetizer->fmt_out.i_extra &&
!p_dec->fmt_in.i_extra )"
Maybe pf_packetize should return a boolean indicating if format changed.
>
> Francois
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
More information about the vlc-devel
mailing list