summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-07-26 17:22:01 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-07-26 17:22:01 +0000
commit42d99bda524414c0e38338e8bc7e3c7504cf0e33 (patch)
tree9bcf4de846237ce3b6dd21cbfb24822261d51414 /libmpdemux
parent134140b1c22e4968d46148a954125fb4408841c9 (diff)
downloadmpv-42d99bda524414c0e38338e8bc7e3c7504cf0e33.tar.bz2
mpv-42d99bda524414c0e38338e8bc7e3c7504cf0e33.tar.xz
Incorrect check in gxf demuxer leading to crash with textKO.gxf sample file
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19187 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/demux_mpg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpdemux/demux_mpg.c b/libmpdemux/demux_mpg.c
index 680ce1d7c3..3dd9d1f1ce 100644
--- a/libmpdemux/demux_mpg.c
+++ b/libmpdemux/demux_mpg.c
@@ -576,7 +576,7 @@ static int demux_mpg_gxf_fill_buffer(demuxer_t *demux, demux_stream_t *ds) {
state = state << 8 | buf[pos];
if (unlikely((state | 3) == 0x1bf))
pos = find_end(&buf, pos, demux->stream);
- } while (++pos);
+ } while (++pos < 0);
demux->priv = (void *)state;
len = buf - pack->buffer;
}