- if( p_stream->i_fourcc == VLC_FOURCC( 'v', 'o', 'r', 'b' ) ||
- p_stream->i_fourcc == VLC_FOURCC( 'f', 'l', 'a', 'c' ) ||
- p_stream->i_fourcc == VLC_FOURCC( 's', 'p', 'x', ' ' ) )
- {
- /* number of sample from begining + current packet */
- op.granulepos =
- ( i_dts - p_sys->i_start_dts + p_data->i_length ) *
- (mtime_t)p_input->p_fmt->audio.i_rate / I64C(1000000);
- }
- else if( p_stream->p_oggds_header )
- {
- /* number of sample from begining */
- op.granulepos = ( i_dts - p_sys->i_start_dts ) *
- p_stream->p_oggds_header->i_samples_per_unit /
- I64C(1000000);
- }
+ /* number of sample from begining + current packet */
+ op.granulepos =
+ ( p_data->i_dts - p_sys->i_start_dts + p_data->i_length ) *
+ (mtime_t)p_input->p_fmt->audio.i_rate / I64C(1000000);