Skip to content

Commit

Permalink
Fix #173
Browse files Browse the repository at this point in the history
Do not touch 0-th element if array in not allocated
  • Loading branch information
eustas committed Aug 21, 2023
1 parent 1d53978 commit d366f14
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/mp4read.c
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,8 @@ static void mp4info(void)
fprintf(stderr, "Frames:\t\t\t%d\n", mp4config.frame.nsamples);
fprintf(stderr, "ASC size:\t\t%d\n", mp4config.asc.size);
fprintf(stderr, "Duration:\t\t%.1f sec\n", (float)mp4config.samples/mp4config.samplerate);
fprintf(stderr, "Data offset:\t%x\n", mp4config.frame.info[0].offset);
if (mp4config.frame.nsamples)
fprintf(stderr, "Data offset:\t%x\n", mp4config.frame.info[0].offset);
}

int mp4read_close(void)
Expand Down

0 comments on commit d366f14

Please sign in to comment.