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

michael subversion
Sat Nov 11 20:43:55 CET 2006


Author: michael
Date: Sat Nov 11 20:43:55 2006
New Revision: 6969

Modified:
   trunk/libavformat/nutdec.c

Log:
dont do startcode search from last syncpoint if there are no errors


Modified: trunk/libavformat/nutdec.c
==============================================================================
--- trunk/libavformat/nutdec.c	(original)
+++ trunk/libavformat/nutdec.c	Sat Nov 11 20:43:55 2006
@@ -699,8 +699,10 @@
 
     do{
         frame_code= get_byte(bc);
-        if(frame_code == 'N') //FIXME update pos
+        if(frame_code == 'N'){
+            pos= url_ftell(bc)-1;
             goto resync;
+        }
         //FIXME consider pos_limit and eof
         size= decode_frame_header(nut, &flags, &pts, &stream_id, frame_code);
 




More information about the ffmpeg-cvslog mailing list