[MPlayer-dev-eng] [PATCH] fix for faad2 infinite loop after decoding error
Bryan Alton
balton at eircom.net
Tue Jun 6 10:52:10 CEST 2006
This patch fixes the infinite loop which occurs when there is
a decode error in a frame.
At present if an error is found, the code attempts to resync by
moving the start point (j) up to a max count (at present 10). If
it didn't resync within the count, the loop will exit WITHOUT
removing the offending frame from the input buffer - so next
time it tries to decode the same packet with the same
result and so on continuously spewing the same error messages.
The patch replaces the current code (based on the variable j)
with a call to the existing re-sync routine aac_sync which
takes data out of the buffer and so mplayer will get past
the problematic frames.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ad_faad.c.diff
Type: text/x-diff
Size: 1135 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20060606/65a300a4/attachment.diff>
More information about the MPlayer-dev-eng
mailing list