resync from last syncpoint
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 14 Nov 2006 22:23:26 +0000 (22:23 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 14 Nov 2006 22:23:26 +0000 (22:23 +0000)
Originally committed as revision 7075 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/nutdec.c

index 73e2b09..97bad24 100644 (file)
@@ -773,7 +773,7 @@ static int nut_read_packet(AVFormatContext *s, AVPacket *pkt)
         default:
 resync:
 av_log(s, AV_LOG_DEBUG, "syncing from %"PRId64"\n", pos);
-            tmp= find_any_startcode(bc, pos+1);
+            tmp= find_any_startcode(bc, nut->last_syncpoint_pos+1);
             if(tmp==0)
                 return -1;
 av_log(s, AV_LOG_DEBUG, "sync\n");