[libbluray-devel] Cosmetics

hpi1 git at videolan.org
Mon Jun 17 11:39:22 CEST 2013


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Thu Jun 13 11:34:21 2013 +0300| [8b0adbaf9be6dd9a4091c57ef6e4f597b27d038d] | committer: hpi1

Cosmetics

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=8b0adbaf9be6dd9a4091c57ef6e4f597b27d038d
---

 src/libbluray/decoders/m2ts_demux.c |   26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/src/libbluray/decoders/m2ts_demux.c b/src/libbluray/decoders/m2ts_demux.c
index d77b362..91fb4be 100644
--- a/src/libbluray/decoders/m2ts_demux.c
+++ b/src/libbluray/decoders/m2ts_demux.c
@@ -106,21 +106,21 @@ static int _add_ts(PES_BUFFER *p, unsigned pusi, uint8_t *buf, unsigned len)
                 return -1;
             }
 
-        unsigned pts_exists = buf[7] & 0x80;
-        unsigned dts_exists = buf[7] & 0x40;
-        hdr_len += buf[8] + 3;
+            unsigned pts_exists = buf[7] & 0x80;
+            unsigned dts_exists = buf[7] & 0x40;
+            hdr_len += buf[8] + 3;
 
-        if (len < hdr_len) {
-            BD_DEBUG(DBG_DECODE, "invalid BDAV TS (PES header not in single TS packet)\n");
-            return -1;
-        }
+            if (len < hdr_len) {
+                BD_DEBUG(DBG_DECODE, "invalid BDAV TS (PES header not in single TS packet)\n");
+                return -1;
+            }
 
-        if (pts_exists) {
-            p->pts = _parse_timestamp(buf + 9);
-        }
-        if (dts_exists) {
-            p->dts = _parse_timestamp(buf + 14);
-        }
+            if (pts_exists) {
+                p->pts = _parse_timestamp(buf + 9);
+            }
+            if (dts_exists) {
+                p->dts = _parse_timestamp(buf + 14);
+            }
         }
 
         buf += hdr_len;



More information about the libbluray-devel mailing list