Ticket #7978: 0002-Disable-slice-shortcut.patch

File 0002-Disable-slice-shortcut.patch, 1.1 KB (added by beirdo, 19 months ago)
  • mythtv/libs/libmythtv/dtvrecorder.cpp

    From 485e57349a7f0efec76ff7028929cc32f900f700 Mon Sep 17 00:00:00 2001
    From: Gavin Hurlbut <gjhurlbu@gmail.com>
    Date: Sat, 16 Oct 2010 22:21:04 -0700
    Subject: [PATCH 2/2] Disable slice shortcut
    
    
    diff --git a/mythtv/libs/libmythtv/dtvrecorder.cpp b/mythtv/libs/libmythtv/dtvrecorder.cpp
    index a2d88e3..5936268 100644
    a b void DTVRecorder::FindPSKeyFrames(const uint8_t *buffer, uint len) 
    704704        const int stream_id = _start_code & 0x000000ff; 
    705705        if (_video_bytes_remaining) 
    706706        { 
     707#if 0 
    707708            if ((stream_id >= PESStreamID::SliceStartCodeBegin) && 
    708709                (stream_id <= PESStreamID::SliceStartCodeEnd)) 
    709710            { // pes_packet_length is meaningless 
    710711                _other_bytes_remaining = 
    711712                    std::max(_other_bytes_remaining, _video_bytes_remaining); 
    712713            } 
     714#endif 
    713715            if (PESStreamID::PictureStartCode == stream_id) 
    714716            { // pes_packet_length is meaningless 
    715717                pes_packet_length = -1;