Ticket #11459: allow-keyframe-without-payload-start.patch

File allow-keyframe-without-payload-start.patch, 994 bytes (added by jpoet, 13 years ago)

After first keyframe, allow keyframes without payload start

  • mythtv/libs/libmythtv/dtvrecorder.cpp

    diff --git a/mythtv/libs/libmythtv/dtvrecorder.cpp b/mythtv/libs/libmythtv/dtvrecorder.cpp
    index c87ed36..a006bfd 100644
    a b bool DTVRecorder::FindMPEG2Keyframes(const TSPacket* tspacket)  
    521521    }
    522522
    523523    // _buffer_packets will only be true if a payload start has been seen
    524     if (hasKeyFrame && _buffer_packets)
     524    if (hasKeyFrame && (_buffer_packets || _first_keyframe >= 0))
    525525    {
    526526        LOG(VB_RECORD, LOG_DEBUG, LOC + QString
    527527            ("Keyframe @ %1 + %2 = %3")
    bool DTVRecorder::FindH264Keyframes(const TSPacket *tspacket)  
    887887    } // for (; i < TSPacket::kSize; ++i)
    888888
    889889    // _buffer_packets will only be true if a payload start has been seen
    890     if (hasKeyFrame && _buffer_packets)
     890    if (hasKeyFrame && (_buffer_packets || _first_keyframe >= 0))
    891891    {
    892892        LOG(VB_RECORD, LOG_DEBUG, LOC + QString
    893893            ("Keyframe @ %1 + %2 = %3 AU %4")