[FFmpeg-cvslog] r24495 - trunk/libavformat/aviobuf.c

reimar subversion
Sun Jul 25 16:35:12 CEST 2010


Author: reimar
Date: Sun Jul 25 16:35:12 2010
New Revision: 24495

Log:
Cosmetics: fix indentation and remove a useless else.

Modified:
   trunk/libavformat/aviobuf.c

Modified: trunk/libavformat/aviobuf.c
==============================================================================
--- trunk/libavformat/aviobuf.c	Sun Jul 25 16:33:40 2010	(r24494)
+++ trunk/libavformat/aviobuf.c	Sun Jul 25 16:35:12 2010	(r24495)
@@ -392,20 +392,18 @@ int get_byte(ByteIOContext *s)
 {
     if (s->buf_ptr >= s->buf_end)
         fill_buffer(s);
-        if (s->buf_ptr < s->buf_end)
-            return *s->buf_ptr++;
-        else
-            return 0;
+    if (s->buf_ptr < s->buf_end)
+        return *s->buf_ptr++;
+    return 0;
 }
 
 int url_fgetc(ByteIOContext *s)
 {
     if (s->buf_ptr >= s->buf_end)
         fill_buffer(s);
-        if (s->buf_ptr < s->buf_end)
-            return *s->buf_ptr++;
-        else
-            return URL_EOF;
+    if (s->buf_ptr < s->buf_end)
+        return *s->buf_ptr++;
+    return URL_EOF;
 }
 
 int get_buffer(ByteIOContext *s, unsigned char *buf, int size)



More information about the ffmpeg-cvslog mailing list