[MPlayer-dev-eng] [PATCH] further dvr-ms playback improvements
Trent Piepho
xyzzy at speakeasy.org
Sat Sep 30 10:15:41 CEST 2006
On Wed, 27 Sep 2006, John Donaghy wrote:
> >
> Actually I did something quite like this at first (except for the
> stopping when it stablizes bit) but I didnt submit it because, for
> some reason that I couldnt figure out, the audio and video were badly
> out of sync after the seek. I hope to investigate this later but I
> though I'd get straight playback working first. I guess it is better
> to get it all fixed in one patch though.
I wonder if it has anything to do with this code:
if (asf->dvr_last_vid_pts > 0.0)
dp->pts=asf->dvr_last_vid_pts+asf->avg_vid_frame_time;
asf->dvr_last_vid_pts = dp->pts;
Isn't dp->pts wrong? After a seek, dvr_last_vid_pts is reset to 0. This
code sets dvr_last_vid_pts based on dp->pts (which was wrong)g. The next
frame's pts will be based on this wrong dvr_last_vid_pts value plus the
estimate of average frame time.
More information about the MPlayer-dev-eng
mailing list