[MPlayer-dev-eng] Re: [PATCH] fix for faad2 infinite loop after decoding error

Bryan Alton balton at eircom.net
Wed Jun 7 16:39:39 CEST 2006


Guillaume POIRIER wrote:

> Hi,
> 
> On 6/6/06, Bryan Alton <balton at eircom.net> wrote:
>> This patch fixes the infinite loop which occurs when there is
>> a decode error in a frame.
> 
> Could you please upload a sample that would exhibit the problem you
> mention?

The problem showed with a streaming source which had an error and corrupted
the datastream while it was filtering out the metadata for display
elsewhere.  

The issue with present code is that for some classes of decode error the
faacDecDecode returns with 0 in faac_finfo.bytesconsumed - it is this
condition that results in a loop.

I'll capture a sample stream and post it.

bryan






More information about the MPlayer-dev-eng mailing list