Skip to content

Commit

Permalink
fixed outputing the GPMF structure from any payload
Browse files Browse the repository at this point in the history
  • Loading branch information
dnewman-gpsw committed Aug 20, 2020
1 parent 8753a0d commit 950174f
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions demo/GPMF_demo.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,15 +159,6 @@ int main(int argc, char* argv[])
if (show_all_payloads || index == 0)
{
printf("GPMF STRUCTURE:\n");
payloadsize = GetPayloadSize(mp4, 0);
payload = GetPayload(mp4, payload, 0);
if (payload == NULL)
goto cleanup;

ret = GPMF_Init(ms, payload, payloadsize);
if (ret != GPMF_OK)
goto cleanup;

// Output (printf) all the contained GPMF data within this payload
ret = GPMF_Validate(ms, GPMF_RECURSE_LEVELS); // optional
if (GPMF_OK != ret)
Expand Down

0 comments on commit 950174f

Please sign in to comment.