Skip to content

Commit

Permalink
Allow multiple keyframes per payload.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpoet committed Mar 26, 2013
1 parent 93bc3d4 commit edefeb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mythtv/libs/libmythtv/recorders/dtvrecorder.cpp
Expand Up @@ -544,7 +544,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")
Expand Down Expand Up @@ -918,7 +918,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")
Expand Down

0 comments on commit edefeb6

Please sign in to comment.