[libdvbpsi-devel] dr_a1.c: Indentation

Jean-Paul Saman git at videolan.org
Wed Dec 24 12:51:58 CET 2014


libdvbpsi | branch: master | Jean-Paul Saman <jpsaman at videolan.org> | Wed Dec 24 11:53:15 2014 +0100| [1993da77616c5f0b3435aa43ffc075d54d239757] | committer: Jean-Paul Saman

dr_a1.c: Indentation

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

 src/descriptors/dr_a1.c |   27 ++++++++++++++-------------
 1 file changed, 14 insertions(+), 13 deletions(-)

diff --git a/src/descriptors/dr_a1.c b/src/descriptors/dr_a1.c
index 796f3c0..cc053dd 100644
--- a/src/descriptors/dr_a1.c
+++ b/src/descriptors/dr_a1.c
@@ -110,23 +110,24 @@ dvbpsi_descriptor_t* dvbpsi_GenServiceLocationDr(
     p_data[2] = p_decoded->i_number_elements;
 
     p_data += 3;
-    for (uint8_t i = 0; i < p_decoded->i_number_elements; ++i) {
-      dvbpsi_service_location_element_t p_es = p_decoded->elements[i];
-      uint8_t* p_es_data = p_data;
-      p_es_data[0] = p_es.i_stream_type;
-      p_es_data[1] = p_es.i_elementary_pid >> 8;
-      p_es_data[2] = p_es.i_elementary_pid;
-      p_es_data[3] = p_es.i_iso_639_code[0];
-      p_es_data[4] = p_es.i_iso_639_code[1];
-      p_es_data[5] = p_es.i_iso_639_code[2];
-
-      p_data += 6;
+    for (uint8_t i = 0; i < p_decoded->i_number_elements; ++i)
+    {
+        dvbpsi_service_location_element_t p_es = p_decoded->elements[i];
+        uint8_t* p_es_data = p_data;
+        p_es_data[0] = p_es.i_stream_type;
+        p_es_data[1] = p_es.i_elementary_pid >> 8;
+        p_es_data[2] = p_es.i_elementary_pid;
+        p_es_data[3] = p_es.i_iso_639_code[0];
+        p_es_data[4] = p_es.i_iso_639_code[1];
+        p_es_data[5] = p_es.i_iso_639_code[2];
+
+        p_data += 6;
     }
 
     if (b_duplicate)
     {
-      p_descriptor->p_decoded = dvbpsi_DuplicateDecodedDescriptor(p_decoded,
-        sizeof(dvbpsi_service_location_dr_t));
+        p_descriptor->p_decoded = dvbpsi_DuplicateDecodedDescriptor(p_decoded,
+                                         sizeof(dvbpsi_service_location_dr_t));
     }
 
     return p_descriptor;



More information about the libdvbpsi-devel mailing list