[MPlayer-dev-eng] [PATCH] Fix mplayer crash due to faad errors
hephooey at gmail.com
Wed Sep 13 04:27:38 CEST 2006
On Wednesday 13 September 2006 02:37, Giacomo Comes wrote:
> at the end of the encoding process mencoder will show many times these
> messages: FAAD: error: Input data buffer too small, trying to resync!
> FAAD: error: Unable to find ADTS syncword, trying to resync!
> AAC_PROBE: 19 bytes
> AUDIO PAYLOAD: f9 c 80 2a
> AAC_PROBE: ret 0
> and most of the times it will stop with a segmentation fault.
I think this is because mplayer still try to feed the decoder even if eof is
reached, ad_realaud.c used to have a similar bug, the solution there is to
check sh->ds->eof if sh->a_in_buffer_len<=0, and return instantly if eof is
reached. Maybe the same thing can be done to faad too.
More information about the MPlayer-dev-eng