[FFmpeg-cvslog] oggdec: fix Ticket185

Michael Niedermayer git at videolan.org
Fri Jun 3 21:21:12 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Jun  3 21:14:30 2011 +0200| [49125aeddcfe1990ab4159d1b144b9387182452b] | committer: Michael Niedermayer

oggdec: fix Ticket185

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=49125aeddcfe1990ab4159d1b144b9387182452b
---

 libavformat/oggdec.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c
index e335358..655da35 100644
--- a/libavformat/oggdec.c
+++ b/libavformat/oggdec.c
@@ -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;
     }
 



More information about the ffmpeg-cvslog mailing list