Ticket #6285: livetv_keyframedist.diff
File livetv_keyframedist.diff, 1.2 KB (added by , 15 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."); … … 2359 2359 2360 2360 void AvFormatDecoder::HandleGopStart(AVPacket *pkt) 2361 2361 { 2362 if ( prevgoppos != 0 && keyframedist != 1)2362 if (!livetv && prevgoppos != 0 && keyframedist != 1) 2363 2363 { 2364 2364 int tempKeyFrameDist = framesRead - 1 - prevgoppos; 2365 2365 bool reset_kfd = false; -
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;