[FFmpeg-soc] [soc]: r5817 - mms/mmst.c

spyfeng subversion at mplayerhq.hu
Mon May 24 18:43:38 CEST 2010


Author: spyfeng
Date: Mon May 24 18:43:37 2010
New Revision: 5817

Log:
fix goto style in consistent.

Modified:
   mms/mmst.c

Modified: mms/mmst.c
==============================================================================
--- mms/mmst.c	Mon May 24 18:32:38 2010	(r5816)
+++ mms/mmst.c	Mon May 24 18:43:37 2010	(r5817)
@@ -609,18 +609,16 @@ static int mms_open(URLContext *h, const
     if (err)
         goto fail;
     err = mms_safe_send_recv(mms, NULL, SC_PKT_ASF_HEADER);
+    if (err)
+        goto fail;
+    if((mms->incoming_flags != 0X08) && (mms->incoming_flags != 0X0C))
+        goto fail;
+    err = asf_header_parser(mms);
     if (err) {
+        dprintf(NULL, "asf header parsed failed!\n");
         goto fail;
-    } else {
-        if((mms->incoming_flags == 0X08) || (mms->incoming_flags == 0X0C)) {
-            err = asf_header_parser(mms);
-            if (err) {
-                dprintf(NULL, "asf header parsed failed!\n");
-                goto fail;
-            }
-            mms->header_parsed = 1;
-        }
     }
+    mms->header_parsed = 1;
 
     if (!mms->asf_packet_len || !mms->stream_num)
         goto fail;


More information about the FFmpeg-soc mailing list