changeset 4858:4273f83dec05 libavformat

fix end of buffer check, fix hang_read_header.h264.ts
author bcoudurier
date Sun, 12 Apr 2009 01:37:34 +0000
parents 18acfe3fe3d5
children 0929b70d4407
files mpegts.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mpegts.c	Sun Apr 12 00:25:37 2009 +0000
+++ b/mpegts.c	Sun Apr 12 01:37:34 2009 +0000
@@ -555,7 +555,7 @@
         if (desc_list_len < 0)
             break;
         desc_list_end = p + desc_list_len;
-        if (desc_list_end > p_end)
+        if (desc_list_end >= p_end)
             break;
         for(;;) {
             desc_tag = get8(&p, desc_list_end);