diff nutdec.c @ 1508:105e0c574359 libavformat

resync from last syncpoint
author michael
date Tue, 14 Nov 2006 22:23:26 +0000
parents 654d32c6047b
children edc979a1ecb5
line wrap: on
line diff
--- a/nutdec.c	Tue Nov 14 22:22:53 2006 +0000
+++ b/nutdec.c	Tue Nov 14 22:23:26 2006 +0000
@@ -773,7 +773,7 @@
         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");