Ticket #3813: h264-capture.patch

File h264-capture.patch, 1.0 KB (added by Ananth Rao, 18 years ago)
  • dtvrecorder.cpp

    old new  
    354371 */
    355372bool DTVRecorder::FindH264Keyframes(const TSPacket* tspacket)
    356373{
    357     if (!tspacket->HasPayload())
    358         return false;
     374    bool haveBufferedData = !_payload_buffer.empty();
     375    if (!tspacket->HasPayload()) // no payload to scan
     376        return !haveBufferedData;
    359377
    360378    const bool payloadStart = tspacket->PayloadStart();
    361379    if (payloadStart)
  • dvbrecorder.cpp

    old new  
    11621158
    11631159    // Check for keyframes and count frames
    11641160    if (info->streamType == StreamID::H264Video)
    1165         FindH264Keyframes(&tspacket);
     1161        _buffer_packets = !FindH264Keyframes(&tspacket);
    11661162    else if (StreamID::IsVideo(info->streamType))
    11671163        _buffer_packets = !FindMPEG2Keyframes(&tspacket);
    11681164        else if (info->streamType==0x05 && _dummy_output_video_pid ) {