When passthru is requested, and the first audio track of the source isn't
passthru compatible, it picked the first track instead of moving on
to a compatible track.
git-svn-id: svn://localhost/HandBrake/trunk@3647
b64f7644-9d1e-0410-96f1-
a4d463321fa5
{
audio = (hb_audio_config_t*)hb_list_audio_config_item(
title->list_audio, ii );
- passthru_acodec = acodec & audio->in.codec;
+ passthru_acodec = HB_ACODEC_PASS_MASK & acodec & audio->in.codec;
// Is the source track use a passthru capable codec?
if (passthru_acodec == 0)
continue;
{
audio = (hb_audio_config_t*)hb_list_audio_config_item(
title->list_audio, ii );
- passthru_acodec = HB_ACODEC_PASS_MASK & audio->in.codec;
+ passthru_acodec = HB_ACODEC_PASS_MASK & acodec & audio->in.codec;
// Is the source track use a passthru capable codec?
if (passthru_acodec == 0)
continue;