changeset 19182:c68cf9a578a8

Incorrect check in gxf demuxer leading to crash with textKO.gxf sample file
author reimar
date Wed, 26 Jul 2006 17:22:01 +0000
parents e40cf0305d4e
children 942000d171f4
files libmpdemux/demux_mpg.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_mpg.c	Wed Jul 26 13:19:02 2006 +0000
+++ b/libmpdemux/demux_mpg.c	Wed Jul 26 17:22:01 2006 +0000
@@ -576,7 +576,7 @@
       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;
   }