[MPlayer-dev-eng] dwStart (stream delay in AVI files)
Corey Hickey
bugfood-ml at fatooh.org
Tue Jan 31 11:12:02 CET 2006
Corey Hickey wrote:
> I can only find one references to dwStart in the demuxer code; it's in
> demux_avi.c, demux_seek_avi(), line 711. Here are a few lines around
> that one:
>
> ----------
> curr_audio_pos=(priv->avi_video_pts)*(float)sh_audio->audio.dwRate/(float)sh_audio->audio.dwScale;
> curr_audio_pos-=sh_audio->audio.dwStart;
> curr_audio_pos*=sh_audio->audio.dwSampleSize;
> ----------
It seems that part only affects CBR audio, which I hadn't noticed before
> So, it looks as if the AVI demuxer tries to adjust, but it doesn't have
> the right effect. At this point I don't know how to fix it; the demuxer
> code is still mostly opaque to me. Does anyone have any pointers?
Never mind, for now; I'm well on my way to a viable patch. It's way past
my bedtime, though, so I'll have to work on it tomorrow.
-Corey
More information about the MPlayer-dev-eng
mailing list