[mythtv-users] Seek table rebuilding for MPEG-2 broken in 0.18.1, alas

Boleslaw Ciesielski bolek-mythtv at curl.com
Mon Feb 13 22:48:38 UTC 2006


Michael T. Dean wrote:
> On 02/13/2006 11:21 AM, Boleslaw Ciesielski wrote:
>> Yeechang Lee wrote:
>>   
>>> Does Myth automatically build seek table data of any kind for a
>>> recording when viewed with the frontend?
>>>     
>> Yes
> 
> Where?

Well, I was thinking that the code in AvFormatDecoder::HandleGopStart() 
(which in turn is called from AvFormatDecoder::GetFrame()) does that.

         if (framesRead > last_frame && keyframedist > 0)
         {
             long long startpos = pkt->pos;

             VERBOSE(VB_PLAYBACK, LOC +
                     QString("positionMap[ %1 ] == %2.")
                     .arg(prevgoppos / keyframedist)
                     .arg((int)startpos));

             PosMapEntry entry = {prevgoppos / keyframedist,
                                  prevgoppos, startpos};
             m_positionMap.push_back(entry);
         }



Is this not correct? Or is the position map built only temporarily but 
not saved in the database?

I apologize if I posted wrong info.

Bolek


More information about the mythtv-users mailing list