Commit 916eeea2 authored by Gildas Bazin's avatar Gildas Bazin

* modules/packetizer/mpeg4video.c: remove the VOL from the packetized stream...

* modules/packetizer/mpeg4video.c: remove the VOL from the packetized stream and put it in fmt.p_extra instead.
parent 2f61ca43
......@@ -234,14 +234,24 @@ static block_t *Packetize( decoder_t *p_dec, block_t **pp_block )
/* fprintf( stderr, "start code=0x1%2.2x\n", p_start[3] ); */
if( p_vol )
{
if( !p_dec->fmt_out.i_extra )
{
/* Copy the complete VOL */
p_dec->fmt_out.i_extra = p_start - p_vol;
p_dec->fmt_out.p_extra =
realloc( p_dec->fmt_out.p_extra, p_dec->fmt_out.i_extra );
memcpy( p_dec->fmt_out.p_extra, p_vol, p_dec->fmt_out.i_extra );
memcpy( p_dec->fmt_out.p_extra, p_vol,
p_dec->fmt_out.i_extra );
m4v_VOLParse( p_dec, &p_dec->fmt_out,
p_dec->fmt_out.p_extra, p_dec->fmt_out.i_extra );
}
/* Remove VOL from the original stream */
memmove( p_vol, p_start,
p_sys->i_buffer - (p_start - p_sys->p_buffer) );
p_sys->i_buffer -= p_dec->fmt_out.i_extra;
p_start = p_vol;
p_vol = NULL;
}
......
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