]> git.sesse.net Git - ffmpeg/commitdiff
oggdec: fix Ticket185
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 3 Jun 2011 19:14:30 +0000 (21:14 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 3 Jun 2011 19:14:30 +0000 (21:14 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/oggdec.c

index e33535860155917c630933589a2816ca8e2ce4ed..655da35dd45e7647daf6f883d1d9487e4d152de7 100644 (file)
@@ -410,6 +410,8 @@ static int ogg_packet(AVFormatContext *s, int *str, int *dstart, int *dsize,
             *fpos = os->sync_pos;
         os->pstart += os->psize;
         os->psize = 0;
+        if(os->pstart == os->bufpos)
+            os->bufpos = os->pstart = 0;
         os->sync_pos = os->page_pos;
     }