Ticket #1291: dec.c.patch

File dec.c.patch, 0.5 kB (added by hawkinsw, 1 year ago)

dec.c patch

  • vlc-0.9.0-svn/src/audio_output/dec.c

    old new  
    8989 
    9090    p_input->b_changed = 0; 
    9191    p_input->b_error = 1; 
    92     aout_FormatPrepare( p_format ); 
     92 
     93    if ( !p_format->i_bytes_per_frame ) 
     94        aout_FormatPrepare( p_format ); 
     95    else  
     96        p_format->i_frame_length = 1; 
     97 
    9398    memcpy( &p_input->input, p_format, 
    9499            sizeof(audio_sample_format_t) ); 
    95100    if( p_replay_gain )