comparison 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
comparison
equal deleted inserted replaced
4857:18acfe3fe3d5 4858:4273f83dec05
553 break; 553 break;
554 desc_list_len = get16(&p, p_end) & 0xfff; 554 desc_list_len = get16(&p, p_end) & 0xfff;
555 if (desc_list_len < 0) 555 if (desc_list_len < 0)
556 break; 556 break;
557 desc_list_end = p + desc_list_len; 557 desc_list_end = p + desc_list_len;
558 if (desc_list_end > p_end) 558 if (desc_list_end >= p_end)
559 break; 559 break;
560 for(;;) { 560 for(;;) {
561 desc_tag = get8(&p, desc_list_end); 561 desc_tag = get8(&p, desc_list_end);
562 if (desc_tag < 0) 562 if (desc_tag < 0)
563 break; 563 break;