We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 861e910 commit c58f053Copy full SHA for c58f053
src/tsdemux.c
@@ -431,7 +431,7 @@ TSDCode tsd_parse_table(TSDemuxContext *ctx,
431
ptr += section_len + 3;
432
section_count++;
433
434
- if((ptr+1) < dataCtx->write && (*(ptr+1) == 0xFF) || (0x00 == *(ptr+1))) {
+ if((ptr <= dataCtx->write) && ((*(ptr+1) == 0xFF) || (0x00 == *(ptr+1)))) {
435
// create and parse the sections.
436
table->length = section_count;
437
table->sections = (TSDTableSection*) ctx->calloc(section_count,
0 commit comments