Skip to content
Browse files

Allow multiple keyframes per payload

  • Loading branch information...
1 parent 5fe87ed commit 69cd78b4028b7b585d238713151b684c291158e7 @jpoet jpoet committed Mar 26, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 mythtv/libs/libmythtv/dtvrecorder.cpp
View
4 mythtv/libs/libmythtv/dtvrecorder.cpp
@@ -521,7 +521,7 @@ bool DTVRecorder::FindMPEG2Keyframes(const TSPacket* tspacket)
}
// _buffer_packets will only be true if a payload start has been seen
- if (hasKeyFrame && _buffer_packets)
+ if (hasKeyFrame && (_buffer_packets || _first_keyframe >= 0))
{
LOG(VB_RECORD, LOG_DEBUG, LOC + QString
("Keyframe @ %1 + %2 = %3")
@@ -887,7 +887,7 @@ bool DTVRecorder::FindH264Keyframes(const TSPacket *tspacket)
} // for (; i < TSPacket::kSize; ++i)
// _buffer_packets will only be true if a payload start has been seen
- if (hasKeyFrame && _buffer_packets)
+ if (hasKeyFrame && (_buffer_packets || _first_keyframe >= 0))
{
LOG(VB_RECORD, LOG_DEBUG, LOC + QString
("Keyframe @ %1 + %2 = %3 AU %4")

0 comments on commit 69cd78b

Please sign in to comment.
Something went wrong with that request. Please try again.