changeset 1479:6a33963be49a libavformat

dont do startcode search from last syncpoint if there are no errors
author michael
date Sat, 11 Nov 2006 19:43:55 +0000
parents 5e1b279a26d2
children 2355202d4c4c
files nutdec.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/nutdec.c	Sat Nov 11 19:37:21 2006 +0000
+++ b/nutdec.c	Sat Nov 11 19:43:55 2006 +0000
@@ -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);