Skip to content

Commit

Permalink
Fix audio track selection in mythtranscode
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Yves Avenard <jyavenard@mythtv.org>
  • Loading branch information
lmaendle authored and jyavenard committed Mar 27, 2011
1 parent 9f22040 commit 52ac546
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions mythtv/programs/mythtranscode/transcode.cpp
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 52ac546

Please sign in to comment.