[MPlayer-dev-eng] problems with avi file demuxer?

D Richard Felker III dalias at aerifal.cx
Sun Feb 10 00:47:20 CET 2002


On Sun, Feb 10, 2002 at 01:09:18AM +0200, Arpi wrote:
> Hi,
> 
> > i just tried to implement seeking in mencoder (to allow encoding to
> > start somewhere other than the beginning of the file) based very
> > loosely on the awful "modific" patch a while back, but without all the
> > bad changes. however, i encountered a problem that didn't occur in
> > "modific" -- mencoder segfaults when trying to framecopy audio from an
> > avi file. i traced the problem to a change in libmpdemux/demux_avi.c:
> > a recently uncommented call to resync_audio_stream(sh_audio);
> 
> hmm. at -oac copy, if all stream inclo (bitrate, channels, samplearte) is
> present in headers (usually, except for mpeg files) then it will NOT initialize
> the audio codec (to avoid eating first bytes of audio stream needed for
> format detecting, codec buffers etc) so sync request to codec may sig11...
> 
> possible workaround: don't skip audio codec initialization if seeking used.
> it won't be problem, as seeking will resync audio stream, won't lose any
> bytes of audio.

thanks for the quick response -- it's working fine with that modification.

> > is this call absolutely necessary, and if so, can someone familiar
> > with it take a look and try to figure out what's wrong with it? i'm
> > attaching a patch (which also comments out that line in the demuxer)
> > to assist in debugging. let me know if you find a solution to this
> > issue -- i'll wait to commit the patch til then.
> you forgot the attacs

attacs?


rich




More information about the MPlayer-dev-eng mailing list