(The problem is that if pts is always 0, no time information
will be written, making stream unplayable).
* pes: cosmetics.
int i_stream_id,
int b_mpeg2 )
{
- block_t *p_es_sav, *p_pes;
+ block_t *p_pes;
mtime_t i_pts, i_dts, i_length;
uint8_t *p_data;
p_data = p_es->p_buffer;
*pp_pes = p_pes = NULL;
- p_es_sav = p_es;
do
{
i_dts += i_length;
}
- (*pp_pes)->i_flags = p_es_sav->i_flags;
return( 0 );
}
}
/* Convert to pes */
+ if( p_stream->i_stream_id == 0xa0 && p_data->i_pts <= 0 )
+ {
+ /* XXX yes I know, it's awfull, but it's needed, so don't remove it ... */
+ p_data->i_pts = p_data->i_dts;
+ }
E_( EStoPES )( p_mux->p_sout, &p_data, p_data, p_stream->i_stream_id, 1 );
BufferChainAppend( &p_stream->chain_pes, p_data );