Skip to content

Commit

Permalink
updates to MP4 reader
Browse files Browse the repository at this point in the history
  • Loading branch information
dnewman-gpsw committed Jun 29, 2021
1 parent 031e264 commit 9878ab0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Example/mp4reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ void *OpenMP4Source(char *filename, uint32_t traktype, uint32_t traksubtype) //
qttag == MAKEID('f', 't', 'y', 'p') ||
qttag == MAKEID('u', 'd', 't', 'a'))
{
LONGSEEK(mediafp, qtsize - 8, SEEK_CUR);
LONGSEEK(mp4->mediafp, qtsize - 8, SEEK_CUR);

NESTSIZE(qtsize);

Expand Down Expand Up @@ -226,7 +226,7 @@ void *OpenMP4Source(char *filename, uint32_t traktype, uint32_t traksubtype) //
len += fread(&skip, 1, 4, mp4->mediafp);
len += fread(&temp, 1, 4, mp4->mediafp); // type will be 'meta' for the correct trak.

if (temp != MAKEID('a', 'l', 'i', 's'))
if (temp != MAKEID('a', 'l', 'i', 's') && temp != MAKEID('u', 'r', 'l', ' '))
type = temp;

LONGSEEK(mp4->mediafp, qtsize - 8 - len, SEEK_CUR); // skip over hldr
Expand Down

0 comments on commit 9878ab0

Please sign in to comment.