[Ffmpeg-cvslog] r6971 - trunk/libavformat/nutdec.c

michael subversion
Sat Nov 11 20:47:58 CET 2006


Author: michael
Date: Sat Nov 11 20:47:58 2006
New Revision: 6971

Modified:
   trunk/libavformat/nutdec.c

Log:
simplify


Modified: trunk/libavformat/nutdec.c
==============================================================================
--- trunk/libavformat/nutdec.c	(original)
+++ trunk/libavformat/nutdec.c	Sat Nov 11 20:47:58 2006
@@ -482,15 +482,13 @@
 
     /* main header */
     pos=0;
-    for(;;){
+    do{
         pos= find_startcode(bc, MAIN_STARTCODE, pos)+1;
         if (pos<0+1){
             av_log(s, AV_LOG_ERROR, "no main startcode found\n");
             return -1;
         }
-        if(decode_main_header(nut) >= 0)
-            break;
-    }
+    }while(decode_main_header(nut) < 0);
 
     /* stream headers */
     pos=0;




More information about the ffmpeg-cvslog mailing list