Commit 2b97246e authored by Baptiste Coudurier's avatar Baptiste Coudurier

fix end of buffer check, fix hang_read_header.h264.ts

Originally committed as revision 18454 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent a3d23e15
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment