Cosmetics/indentation fixes.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31052 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2010-04-20 20:24:01 +00:00
parent 903dedd64f
commit 06c6130710
1 changed files with 5 additions and 4 deletions

View File

@ -146,13 +146,14 @@ static int init(sh_audio_t *sh_audio)
if(sh_audio->wf){
// If the decoder uses the wrong number of channels all is lost anyway.
// sh_audio->channels=sh_audio->wf->nChannels;
if (lavc_context->codec_id == CODEC_ID_AAC &&
sh_audio->samplerate == 2*sh_audio->wf->nSamplesPerSec) {
mp_msg(MSGT_DECAUDIO, MSGL_WARN,
"Ignoring broken container sample rate for ACC with SBR\n");
} else
if (sh_audio->wf->nSamplesPerSec)
} else if (sh_audio->wf->nSamplesPerSec)
sh_audio->samplerate=sh_audio->wf->nSamplesPerSec;
if (sh_audio->wf->nAvgBytesPerSec)
sh_audio->i_bps=sh_audio->wf->nAvgBytesPerSec;
}