Commit 7475bd78 authored by Gildas Bazin's avatar Gildas Bazin

* src/input/decoder.c: check for codec extra data changes when a packetizer is...

* src/input/decoder.c: check for codec extra data changes when a packetizer is inserted before the decoder.
parent b7956b32
......@@ -668,6 +668,15 @@ static int DecoderDecode( decoder_t *p_dec, block_t *p_block )
while( (p_packetized_block =
p_packetizer->pf_packetize( p_packetizer, &p_block )) )
{
if( p_packetizer->fmt_out.i_extra && !p_dec->fmt_in.i_extra )
{
p_dec->fmt_in.i_extra = p_packetizer->fmt_out.i_extra;
p_dec->fmt_in.p_extra = malloc( p_dec->fmt_in.i_extra );
memcpy( p_dec->fmt_in.p_extra,
p_packetizer->fmt_out.p_extra,
p_dec->fmt_in.i_extra );
}
while( p_packetized_block )
{
block_t *p_next = p_packetized_block->p_next;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment