Commit 49125aed authored by Michael Niedermayer's avatar Michael Niedermayer

oggdec: fix Ticket185

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent c1daf072
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment