Ticket #6285: livetv_keyframedist2.diff
| File livetv_keyframedist2.diff, 1.5 KB (added by , 17 years ago) |
|---|
-
libs/libmythtv/avformatdecoder.cpp
993 993 } 994 994 995 995 // If we don't have a position map, set up ffmpeg for seeking 996 if (!recordingHasPositionMap )996 if (!recordingHasPositionMap && !livetv) 997 997 { 998 998 VERBOSE(VB_PLAYBACK, LOC + 999 999 "Recording has no position -- using libavformat seeking."); … … 2364 2364 int tempKeyFrameDist = framesRead - 1 - prevgoppos; 2365 2365 bool reset_kfd = false; 2366 2366 2367 if (!gopset ) // gopset: we've seen 2 keyframes2367 if (!gopset || livetv) // gopset: we've seen 2 keyframes 2368 2368 { 2369 2369 VERBOSE(VB_PLAYBACK, LOC + "HandleGopStart: " 2370 2370 "gopset not set, syncing positionMap"); 2371 2371 SyncPositionMap(); 2372 if (tempKeyFrameDist > 0 )2372 if (tempKeyFrameDist > 0 && !livetv) 2373 2373 { 2374 2374 VERBOSE(VB_PLAYBACK, LOC + "HandleGopStart: " + 2375 2375 QString("Initial key frame distance: %1.") -
libs/libmythtv/decoderbase.cpp
180 180 181 181 bool DecoderBase::PosMapFromEnc(void) 182 182 { 183 if (!m_parent )183 if (!m_parent || keyframedist < 1) 184 184 return false; 185 185 186 186 unsigned long long start = 0;
