Ticket #11639: 0002-actually-add-the-timecodeOffset-when-writing-audio-f.patch

File 0002-actually-add-the-timecodeOffset-when-writing-audio-f.patch, 1.9 KB (added by dekarl@…, 11 years ago)
  • mythtv/programs/mythtranscode/transcode.cpp

    From 0e339c63d9a987c46c9ad2870db86a11751ad950 Mon Sep 17 00:00:00 2001
    From: Karl Dietz <dekarl@mythtv.org>
    Date: Fri, 11 Oct 2013 22:23:37 +0200
    Subject: [PATCH 2/2] actually add the timecodeOffset when writing audio
     frames
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 8bit
    
    Patch by Nicolas Pöhlmann
    Reviewed by Paul Gardiner
    
    Refs #11639
    Fixes #11858
    ---
     mythtv/programs/mythtranscode/transcode.cpp |    6 +++---
     1 file changed, 3 insertions(+), 3 deletions(-)
    
    diff --git a/mythtv/programs/mythtranscode/transcode.cpp b/mythtv/programs/mythtranscode/transcode.cpp
    index d35f8b8..81da71f 100644
    a b int Transcode::TranscodeFile(const QString &inputname, 
    12741274                }
    12751275
    12761276                nvr->WriteVideo(&frame, true, writekeyframe);
    1277                 lastWrittenTime = frame.timecode;
     1277                lastWrittenTime = frame.timecode + timecodeOffset;
    12781278            }
    12791279            GetPlayer()->GetCC608Reader()->FlushTxtBuffers();
    12801280        }
    int Transcode::TranscodeFile(const QString &inputname, 
    13661366
    13671367                    if (avfw->WriteVideoFrame(&frame) > 0)
    13681368                    {
    1369                         lastWrittenTime = frame.timecode;
     1369                        lastWrittenTime = frame.timecode + timecodeOffset;
    13701370                        if (hls)
    13711371                            ++hlsSegmentFrames;
    13721372                    }
    int Transcode::TranscodeFile(const QString &inputname, 
    13791379                    nvr->WriteVideo(&frame, true, true);
    13801380                else
    13811381                    nvr->WriteVideo(&frame);
    1382                 lastWrittenTime = frame.timecode;
     1382                lastWrittenTime = frame.timecode + timecodeOffset;
    13831383            }
    13841384
    13851385            // audio is fully decoded, so we need to reencode it