-#ifndef FIXME
- /* This hack for #transcode{acodec=...}:display to work -- Courmisch */
- if( i_input_rate == 0 )
- i_input_rate = INPUT_RATE_DEFAULT;
-#endif
- if( i_input_rate > INPUT_RATE_DEFAULT * AOUT_MAX_INPUT_RATE ||
- i_input_rate < INPUT_RATE_DEFAULT / AOUT_MAX_INPUT_RATE )
- {
- aout_BufferFree( p_buffer );
- return 0;
- }
-
- if ( p_buffer->start_date > mdate() + p_input->i_pts_delay +
- AOUT_MAX_ADVANCE_TIME )
- {
- msg_Warn( p_aout, "received buffer in the future (%"PRId64")",
- p_buffer->start_date - mdate());
- if( p_input->p_input_thread )
- {
- vlc_mutex_lock( &p_input->p_input_thread->p->counters.counters_lock);
- stats_UpdateInteger( p_aout,
- p_input->p_input_thread->p->counters.p_lost_abuffers,
- 1, NULL );
- vlc_mutex_unlock( &p_input->p_input_thread->p->counters.counters_lock);
- }
- aout_BufferFree( p_buffer );
- return -1;
- }