_("VLC failed to load the ASF header.") );
return 0;
}
+ es_out_Control( p_demux->out, ES_OUT_RESET_PCR );
continue;
}
}
p_sys->i_time = GetMoviePTS( p_sys );
if( p_sys->i_time >= 0 )
{
- es_out_Control( p_demux->out, ES_OUT_SET_PCR, p_sys->i_time );
+ es_out_Control( p_demux->out, ES_OUT_SET_PCR, p_sys->i_time+1 );
}
return 1;
{
if( i_time < 0 ) i_time = tk->i_time;
else i_time = __MIN( i_time, tk->i_time );
+ break;
}
}
/* send complete packet to decoder */
block_t *p_gather = block_ChainGather( tk->p_frame );
+ if( p_sys->i_time < 0 )
+ es_out_Control( p_demux->out, ES_OUT_SET_PCR, tk->i_time );
+
es_out_Send( p_demux->out, tk->p_es, p_gather );
tk->p_frame = NULL;
}
}
#endif
-
- es_out_Control( p_demux->out, ES_OUT_RESET_PCR );
return VLC_SUCCESS;
error: