diff mpegts.c @ 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 5c5fe792bb66
children 0929b70d4407
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);