diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-06-03 21:14:30 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-06-03 21:14:30 +0200 |
commit | 49125aeddcfe1990ab4159d1b144b9387182452b (patch) | |
tree | e344f2d063cf1cd3da55df6bad8c23b07d723b92 /libavformat | |
parent | c1daf0723c49d331deecd63b4a6a328000821950 (diff) | |
download | ffmpeg-49125aeddcfe1990ab4159d1b144b9387182452b.tar.gz |
oggdec: fix Ticket185
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/oggdec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c index e335358601..655da35dd4 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; } |