Skip to content
Permalink
Browse files

Fix audio track selection in mythtranscode

Signed-off-by: Jean-Yves Avenard <jyavenard@mythtv.org>
  • Loading branch information...
lmaendle authored and jyavenard committed Mar 27, 2011
1 parent 9f22040 commit 52ac546e3e4db805c8afa3442eac51a9db2b9e8a
Showing with 6 additions and 6 deletions.
  1. +6 −6 mythtv/programs/mythtranscode/transcode.cpp
@@ -423,6 +423,12 @@ int Transcode::TranscodeFile(
return REENCODE_ERROR;
}

if (AudioTrackNo > -1)
{
VERBOSE(VB_GENERAL, QString("Set audiotrack number to %1").arg(AudioTrackNo));
player->GetDecoder()->SetTrack(kTrackTypeAudio, AudioTrackNo);
}

long long total_frame_count = player->GetTotalFrameCount();
long long new_frame_count = total_frame_count;
if (honorCutList && m_proginfo)
@@ -737,12 +743,6 @@ int Transcode::TranscodeFile(
return REENCODE_ERROR;
}

if (AudioTrackNo > -1)
{
VERBOSE(VB_GENERAL, QString("Set audiotrack number to %1").arg(AudioTrackNo));
player->GetDecoder()->SetTrack(kTrackTypeAudio, AudioTrackNo);
}

int vidSize = 0;

// 1920x1080 video is actually 1920x1088 because of the 16x16 blocks so

0 comments on commit 52ac546

Please sign in to comment.
You can’t perform that action at this time.