summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authorulion <ulion@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-05-08 16:05:49 +0000
committerulion <ulion@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-05-08 16:05:49 +0000
commitd915b7fc976dd49e42bb26a56027cb2a245d25f5 (patch)
treefab65a3472ba88c1b1fc5a3b45d54e21a356688f /libmpcodecs
parent30f7fb8c69857f09f995542a840fc25362c95547 (diff)
downloadmpv-d915b7fc976dd49e42bb26a56027cb2a245d25f5.tar.bz2
mpv-d915b7fc976dd49e42bb26a56027cb2a245d25f5.tar.xz
Reindent for last commit.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26694 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/ad_hwac3.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/libmpcodecs/ad_hwac3.c b/libmpcodecs/ad_hwac3.c
index 2ddbc0f450..1ac2a5155e 100644
--- a/libmpcodecs/ad_hwac3.c
+++ b/libmpcodecs/ad_hwac3.c
@@ -63,29 +63,29 @@ static int ac3dts_fillbuff(sh_audio_t *sh_audio)
if (sh_audio->format == 0x2001)
{
- length = dts_syncinfo(sh_audio->a_in_buffer, &flags, &sample_rate, &bit_rate);
- if(length >= 12)
- {
- if(isdts != 1)
+ length = dts_syncinfo(sh_audio->a_in_buffer, &flags, &sample_rate, &bit_rate);
+ if(length >= 12)
{
- mp_msg(MSGT_DECAUDIO, MSGL_STATUS, "hwac3: switched to DTS, %d bps, %d Hz\n", bit_rate, sample_rate);
- isdts = 1;
+ if(isdts != 1)
+ {
+ mp_msg(MSGT_DECAUDIO, MSGL_STATUS, "hwac3: switched to DTS, %d bps, %d Hz\n", bit_rate, sample_rate);
+ isdts = 1;
+ }
+ break;
}
- break;
- }
}
else
{
- length = a52_syncinfo(sh_audio->a_in_buffer, &flags, &sample_rate, &bit_rate);
- if(length >= 7 && length <= 3840)
- {
- if(isdts != 0)
+ length = a52_syncinfo(sh_audio->a_in_buffer, &flags, &sample_rate, &bit_rate);
+ if(length >= 7 && length <= 3840)
{
- mp_msg(MSGT_DECAUDIO, MSGL_STATUS, "hwac3: switched to AC3, %d bps, %d Hz\n", bit_rate, sample_rate);
- isdts = 0;
+ if(isdts != 0)
+ {
+ mp_msg(MSGT_DECAUDIO, MSGL_STATUS, "hwac3: switched to AC3, %d bps, %d Hz\n", bit_rate, sample_rate);
+ isdts = 0;
+ }
+ break; /* we're done.*/
}
- break; /* we're done.*/
- }
}
/* bad file => resync*/
memcpy(sh_audio->a_in_buffer, sh_audio->a_in_buffer + 1, 11);