summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-05-04 13:59:14 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-05-04 14:40:22 +0200
commitef32fbafcdfd5b9c3f758ae53a4ec622d96043a6 (patch)
tree5abb52519758412bbb631592b23c6de5f8e93347
parenta6bb09fc1a9a3e513725d325634866796cdaeda4 (diff)
downloadffmpeg-streaming-ef32fbafcdfd5b9c3f758ae53a4ec622d96043a6.zip
ffmpeg-streaming-ef32fbafcdfd5b9c3f758ae53a4ec622d96043a6.tar.gz
oggdec: fix off by one error on pos_limit
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/oggdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c
index 8decb62..ab7ab1d 100644
--- a/libavformat/oggdec.c
+++ b/libavformat/oggdec.c
@@ -672,7 +672,7 @@ static int64_t ogg_read_timestamp(AVFormatContext *s, int stream_index,
avio_seek(bc, *pos_arg, SEEK_SET);
ogg_reset(s);
- while (avio_tell(bc) < pos_limit && !ogg_packet(s, &i, &pstart, &psize, pos_arg)) {
+ while (avio_tell(bc) <= pos_limit && !ogg_packet(s, &i, &pstart, &psize, pos_arg)) {
if (i == stream_index) {
struct ogg_stream *os = ogg->streams + stream_index;
pts = ogg_calc_pts(s, i, NULL);
OpenPOWER on IntegriCloud