aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mpegts.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-04-12 01:37:34 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-04-12 01:37:34 +0000
commit2b97246ec282d0b8213259cc1013e086dc5b4fbb (patch)
tree6ef3bb98f8578f7048b068f5d84b2abcd40ddab5 /libavformat/mpegts.c
parenta3d23e15fbcdfaf4e36c91c5018d87da712282ad (diff)
downloadffmpeg-2b97246ec282d0b8213259cc1013e086dc5b4fbb.tar.gz
fix end of buffer check, fix hang_read_header.h264.ts
Originally committed as revision 18454 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mpegts.c')
-rw-r--r--libavformat/mpegts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 87c020a397..7468a023df 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -555,7 +555,7 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
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);