p_input->b_changed = 0;
p_input->b_error = 1;
- aout_FormatPrepare( p_format );
+
+ if ( !p_format->i_bytes_per_frame )
+ aout_FormatPrepare( p_format );
+ else
+ p_format->i_frame_length = 1;
+
memcpy( &p_input->input, p_format,
sizeof(audio_sample_format_t) );
if( p_replay_gain )