changeset 26662:1f2553fb3cbe

Reindent for last commit.
author ulion
date Thu, 08 May 2008 16:05:49 +0000
parents d22e246ab209
children 1054149d8018
files libmpcodecs/ad_hwac3.c
diffstat 1 files changed, 16 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ad_hwac3.c	Thu May 08 15:55:21 2008 +0000
+++ b/libmpcodecs/ad_hwac3.c	Thu May 08 16:05:49 2008 +0000
@@ -63,29 +63,29 @@
 
     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);