aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-06-03 21:14:30 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-06-03 21:14:30 +0200
commit49125aeddcfe1990ab4159d1b144b9387182452b (patch)
treee344f2d063cf1cd3da55df6bad8c23b07d723b92 /libavformat
parentc1daf0723c49d331deecd63b4a6a328000821950 (diff)
downloadffmpeg-49125aeddcfe1990ab4159d1b144b9387182452b.tar.gz
oggdec: fix Ticket185
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/oggdec.c2
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;
}