[mythtv] [PATCH] position map using frame numbers, rev 2

David Engel dlengel at attbi.com
Thu Dec 18 03:00:24 EST 2003


On Mon, Dec 15, 2003 at 05:34:41PM -0800, Bruce Markey wrote:
> I believe this is because FramesPlayed is something more like
> frames decoded and doesn't account for the frames in the
> vbuffers. In other words, when FramesPlayed is 100 the frame
> shown from normal playback is 980. Left arrow decodes and
> displays 99 which is nearly a second later than the pause
> when entering edit mode.

I think this is mainly due to frame numbers (e.g. desiredFrame) being
0-based and framesPlayed, effectively, being 1-based.  For example,
when DoFastForward says go to desiredFrame=1000, it implies showing
the frame when framesPlayed == 1001.  I know I was confused by this
when working on the ivtvdecoder.  It makes it easy to have an
off-by-one error.  Or should that be an off-by-gop error?

David
-- 
David Engel
dlengel at attbi.com


More information about the mythtv-dev mailing list