[FFmpeg-soc] [soc]: r4747 - rtmp/rtmppkt.c

kostya subversion at mplayerhq.hu
Wed Jul 22 07:29:40 CEST 2009


Author: kostya
Date: Wed Jul 22 07:29:39 2009
New Revision: 4747

Log:
Remove unneeded braces

Modified:
   rtmp/rtmppkt.c

Modified: rtmp/rtmppkt.c
==============================================================================
--- rtmp/rtmppkt.c	Wed Jul 22 07:27:48 2009	(r4746)
+++ rtmp/rtmppkt.c	Wed Jul 22 07:29:39 2009	(r4747)
@@ -70,22 +70,18 @@ int rtmp_packet_read(URLContext *h, RTMP
         //todo
         return -1;
     } else {
-        if (url_read_complete(h, buf, 3) != 3) {
+        if (url_read_complete(h, buf, 3) != 3)
             return AVERROR(EIO);
-        }
         timestamp = AV_RB24(buf);
         if (hdr != RTMP_PS_FOURBYTES) {
-            if (url_read_complete(h, buf, 3) != 3) {
+            if (url_read_complete(h, buf, 3) != 3)
                 return AVERROR(EIO);
-            }
             data_size = AV_RB24(buf);
-            if (url_read_complete(h, &type, 1) != 1) {
+            if (url_read_complete(h, &type, 1) != 1)
                 return AVERROR(EIO);
-            }
             if (hdr == RTMP_PS_TWELVEBYTES) {
-                if (url_read_complete(h, buf, 4) != 4) {
+                if (url_read_complete(h, buf, 4) != 4)
                     return AVERROR(EIO);
-                }
                 extra = AV_RL32(buf);
             } else {
                 extra = prev_pkt[channel_id].extra;
@@ -115,9 +111,8 @@ int rtmp_packet_read(URLContext *h, RTMP
         offset    += chunk_size;
         if (data_size > 0) {
             url_read_complete(h, &t, 1); //marker
-            if (t != (0xC0 + channel_id)) {
+            if (t != (0xC0 + channel_id))
                 return -1;
-            }
         }
     }
     return 0;


More information about the FFmpeg-soc mailing list