]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
dont do startcode search from last syncpoint if there are no errors
authormichael <michael@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sat, 11 Nov 2006 19:43:55 +0000 (19:43 +0000)
committermichael <michael@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sat, 11 Nov 2006 19:43:55 +0000 (19:43 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6969 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavformat/nutdec.c

index 13215b78f4c7f05d81be494eaf961cc0679f3139..6d8ecbdf9ca481b89dc1a376f6f19c15c69ff308 100644 (file)
@@ -699,8 +699,10 @@ resync:
 
     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);