1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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

Originally committed as revision 18454 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Baptiste Coudurier 2009-04-12 01:37:34 +00:00
parent a3d23e15fb
commit 2b97246ec2

View File

@ -555,7 +555,7 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
if (desc_list_len < 0) if (desc_list_len < 0)
break; break;
desc_list_end = p + desc_list_len; desc_list_end = p + desc_list_len;
if (desc_list_end > p_end) if (desc_list_end >= p_end)
break; break;
for(;;) { for(;;) {
desc_tag = get8(&p, desc_list_end); desc_tag = get8(&p, desc_list_end);