[MPlayer-cvslog] r31052 - trunk/libmpcodecs/ad_ffmpeg.c
reimar
subversion at mplayerhq.hu
Tue Apr 20 22:24:02 CEST 2010
Author: reimar
Date: Tue Apr 20 22:24:01 2010
New Revision: 31052
Log:
Cosmetics/indentation fixes.
Modified:
trunk/libmpcodecs/ad_ffmpeg.c
Modified: trunk/libmpcodecs/ad_ffmpeg.c
==============================================================================
--- trunk/libmpcodecs/ad_ffmpeg.c Tue Apr 20 22:22:49 2010 (r31051)
+++ trunk/libmpcodecs/ad_ffmpeg.c Tue Apr 20 22:24:01 2010 (r31052)
@@ -146,15 +146,16 @@ 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)
- sh_audio->samplerate=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;
+ sh_audio->i_bps=sh_audio->wf->nAvgBytesPerSec;
}
sh_audio->samplesize=af_fmt2bits(sh_audio->sample_format)/ 8;
return 1;
More information about the MPlayer-cvslog
mailing list