diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-04-12 01:37:34 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-04-12 01:37:34 +0000 |
commit | 2b97246ec282d0b8213259cc1013e086dc5b4fbb (patch) | |
tree | 6ef3bb98f8578f7048b068f5d84b2abcd40ddab5 /libavformat/mpegts.c | |
parent | a3d23e15fbcdfaf4e36c91c5018d87da712282ad (diff) | |
download | ffmpeg-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.c | 2 |
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); |