Commit c74824b3 authored by Ilkka Ollakka's avatar Ilkka Ollakka

libmpgatofixed32: give mad-errors as msg_Err and give empty frames only if mad...

libmpgatofixed32: give mad-errors as msg_Err and give empty frames only if mad tells that it can't recover from that error
parent 45d1baf8
......@@ -95,9 +95,10 @@ static void DoWork( filter_t * p_filter,
p_in_buf->i_buffer );
if ( mad_frame_decode( &p_sys->mad_frame, &p_sys->mad_stream ) == -1 )
{
msg_Dbg( p_filter, "libmad error: %s",
msg_Err( p_filter, "libmad error: %s",
mad_stream_errorstr( &p_sys->mad_stream ) );
p_sys->i_reject_count = 3;
if( !MAD_RECOVERABLE( p_sys->mad_stream.error ) )
p_sys->i_reject_count = 3;
}
else if( p_in_buf->i_flags & BLOCK_FLAG_DISCONTINUITY )
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment