Ticket #9691: mythtranscode_audiotrack.patch

File mythtranscode_audiotrack.patch, 972 bytes (added by Lutz Mändle <lmaendle@…>, 13 years ago)
  • transcode.cpp

    diff -Naur ./orig//transcode.cpp ./patched//transcode.cpp
    old new  
    423423        return REENCODE_ERROR;
    424424    }
    425425
     426    if (AudioTrackNo > -1)
     427    {
     428        VERBOSE(VB_GENERAL, QString("Set audiotrack number to %1").arg(AudioTrackNo));
     429        player->GetDecoder()->SetTrack(kTrackTypeAudio, AudioTrackNo);
     430    }
     431
    426432    long long total_frame_count = player->GetTotalFrameCount();
    427433    long long new_frame_count = total_frame_count;
    428434    if (honorCutList && m_proginfo)
     
    737743        return REENCODE_ERROR;
    738744    }
    739745
    740     if (AudioTrackNo > -1)
    741     {
    742         VERBOSE(VB_GENERAL, QString("Set audiotrack number to %1").arg(AudioTrackNo));
    743         player->GetDecoder()->SetTrack(kTrackTypeAudio, AudioTrackNo);
    744     }
    745 
    746746    int vidSize = 0;
    747747
    748748    // 1920x1080 video is actually 1920x1088 because of the 16x16 blocks so