[libdvbpsi-devel] examples/decode_mpeg.c: fix indentation (CID 17260)

Jean-Paul Saman git at videolan.org
Wed Apr 16 15:53:32 CEST 2014


libdvbpsi | branch: master | Jean-Paul Saman <jpsaman at videolan.org> | Fri Apr 11 16:08:56 2014 +0200| [ca127bb75e9258350030bec9db6d4f57ea33b5f0] | committer: Jean-Paul Saman

examples/decode_mpeg.c: fix indentation (CID 17260)

> http://git.videolan.org/gitweb.cgi/libdvbpsi.git/?a=commit;h=ca127bb75e9258350030bec9db6d4f57ea33b5f0
---

 examples/decode_mpeg.c |   54 ++++++++++++++++++++++++------------------------
 1 file changed, 27 insertions(+), 27 deletions(-)

diff --git a/examples/decode_mpeg.c b/examples/decode_mpeg.c
index 237412b..f60f217 100644
--- a/examples/decode_mpeg.c
+++ b/examples/decode_mpeg.c
@@ -460,33 +460,33 @@ static void DumpSubtitleDescriptor(dvbpsi_subtitling_dr_t* p_subtitle_descriptor
  *****************************************************************************/
 static void DumpDescriptors(const char* str, dvbpsi_descriptor_t* p_descriptor)
 {
-  int i;
-
-  while(p_descriptor)
-  {
-    fprintf( stderr, "%s 0x%02x : ", str, p_descriptor->i_tag);
-    switch (p_descriptor->i_tag)
-      {
-      case SYSTEM_CLOCK_DR:
-    DumpSystemClockDescriptor(dvbpsi_DecodeSystemClockDr(p_descriptor));
-    break;
-      case MAX_BITRATE_DR:
-    DumpMaxBitrateDescriptor(dvbpsi_DecodeMaxBitrateDr(p_descriptor));
-    break;
-      case STREAM_IDENTIFIER_DR:
-    DumpStreamIdentifierDescriptor(dvbpsi_DecodeStreamIdentifierDr(p_descriptor));
-    break;
-      case SUBTITLING_DR:
-    DumpSubtitleDescriptor(dvbpsi_DecodeSubtitlingDr(p_descriptor));
-    break;
-      default:
-    fprintf( stderr, "\"");
-    for(i = 0; i < p_descriptor->i_length; i++)
-      fprintf( stderr, "%c", p_descriptor->p_data[i]);
-      fprintf( stderr, "\"\n");
-      }
-    p_descriptor = p_descriptor->p_next;
-  }
+    int i;
+
+    while(p_descriptor)
+    {
+        fprintf( stderr, "%s 0x%02x : ", str, p_descriptor->i_tag);
+        switch (p_descriptor->i_tag)
+        {
+        case SYSTEM_CLOCK_DR:
+            DumpSystemClockDescriptor(dvbpsi_DecodeSystemClockDr(p_descriptor));
+            break;
+        case MAX_BITRATE_DR:
+            DumpMaxBitrateDescriptor(dvbpsi_DecodeMaxBitrateDr(p_descriptor));
+            break;
+        case STREAM_IDENTIFIER_DR:
+            DumpStreamIdentifierDescriptor(dvbpsi_DecodeStreamIdentifierDr(p_descriptor));
+            break;
+        case SUBTITLING_DR:
+            DumpSubtitleDescriptor(dvbpsi_DecodeSubtitlingDr(p_descriptor));
+            break;
+        default:
+            fprintf( stderr, "\"");
+            for(i = 0; i < p_descriptor->i_length; i++)
+                fprintf( stderr, "%c", p_descriptor->p_data[i]);
+            fprintf( stderr, "\"\n");
+        }
+        p_descriptor = p_descriptor->p_next;
+    }
 }
 
 /*****************************************************************************



More information about the libdvbpsi-devel mailing list