[mythtv-commits] mythtv commit: r26839 by beirdo

mythtv at cvs.mythtv.org mythtv at cvs.mythtv.org
Sun Oct 17 05:36:57 UTC 2010


      Author: beirdo
        Date: 2010-10-17 05:36:57 +0000 (Sun, 17 Oct 2010)
New Revision: 26839
   Changeset: http://svn.mythtv.org/trac/changeset/26839

Log:

Prevent HandleKeyframe from attempting to put negative file offsets into the 
position map (and thus the recordedseek table in the db) as they get crammed
into unsigned 64-bit numbers, giving extremely large offset values, which are
incorrect.

Also, keep FindPSKeyFrame from trying to put in negative offsets.  The value of
(bufstart - bufptr) is always <= 0.  The desired offset within the buffer is
actually (bufptr - bufstart).

The combination of these two was found while investigating borked seektables
on MPEG2-PS recordings.

Refs #7978



Modified:

   trunk/mythtv/libs/libmythtv/dtvrecorder.cpp




More information about the mythtv-commits mailing list