changeset 1424:1c39ce5c6a5d libavformat

indentation fix, patch by Ryan Martell % rdm4 A martellventures P com % Original thread: Date: Oct 27, 2006 6:17 AM Subject: Re: [Ffmpeg-devel] RTP patches & RFC
author gpoirier
date Fri, 27 Oct 2006 17:51:20 +0000
parents 4eac39e2c41f
children 00d9393a126f
files rtp.c rtsp.c
diffstat 2 files changed, 14 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/rtp.c	Fri Oct 27 10:53:08 2006 +0000
+++ b/rtp.c	Fri Oct 27 17:51:20 2006 +0000
@@ -372,17 +372,17 @@
         if(s->st && s->parse_packet) {
             return s->parse_packet(s, pkt, 0, NULL, 0);
         } else {
-        if (s->read_buf_index >= s->read_buf_size)
-            return -1;
-        ret = mpegts_parse_packet(s->ts, pkt, s->buf + s->read_buf_index,
-                                  s->read_buf_size - s->read_buf_index);
-        if (ret < 0)
-            return -1;
-        s->read_buf_index += ret;
-        if (s->read_buf_index < s->read_buf_size)
-            return 1;
-        else
-            return 0;
+            if (s->read_buf_index >= s->read_buf_size)
+                return -1;
+            ret = mpegts_parse_packet(s->ts, pkt, s->buf + s->read_buf_index,
+                                      s->read_buf_size - s->read_buf_index);
+            if (ret < 0)
+                return -1;
+            s->read_buf_index += ret;
+            if (s->read_buf_index < s->read_buf_size)
+                return 1;
+            else
+                return 0;
         }
     }
 
@@ -460,8 +460,8 @@
             if(s->parse_packet) {
                 return s->parse_packet(s, pkt, timestamp, buf, len);
             } else {
-            av_new_packet(pkt, len);
-            memcpy(pkt->data, buf, len);
+                av_new_packet(pkt, len);
+                memcpy(pkt->data, buf, len);
             }
             break;
         }
--- a/rtsp.c	Fri Oct 27 10:53:08 2006 +0000
+++ b/rtsp.c	Fri Oct 27 17:51:20 2006 +0000
@@ -467,7 +467,7 @@
                             sdp_parse_fmtp(st, p);
                         }
                     } else {
-                    sdp_parse_fmtp(st, p);
+                        sdp_parse_fmtp(st, p);
                     }
                 }
             }