Ticket #1925: dvb-h264.diff

File dvb-h264.diff, 961 bytes (added by anonymous, 13 years ago)
  • mythtv/libs/libmythtv/dvbrecorder.cpp

     
    923923        info = _pid_infos[pid] = new PIDInfo();
    924924
    925925    // Check for keyframes and count frames
    926     if (StreamID::IsVideo(info->streamType))
     926    if (info->streamType == StreamID::H264Video)
     927        _buffer_packets = !FindH264Keyframes(&tspacket);
     928    else if (info->streamType ==StreamID::MPEG2Video)
    927929        _buffer_packets = !FindMPEG2Keyframes(&tspacket);
    928930
    929931    // Sync recording start to first keyframe
     
    950952            info->payloadStartSeen = true;
    951953        }
    952954
    953         BufferedWrite(tspacket);
     955        if ((info->streamType != StreamID::H264Video) || _seen_sps)
     956            BufferedWrite(tspacket);
    954957    }
    955958    else
    956959        VERBOSE(VB_IMPORTANT, LOC + QString("Unknown PID 0x%1")