Skip to content

Commit

Permalink
fix mp4_h26x_write_nal return values
Browse files Browse the repository at this point in the history
  • Loading branch information
lieff committed Feb 23, 2020
1 parent 8bbd1ca commit 3d259a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion minimp4.h
Original file line number Diff line number Diff line change
Expand Up @@ -2317,7 +2317,7 @@ int mp4_h26x_write_nal(mp4_h26x_writer_t *h, const unsigned char *nal, int lengt
}
payload_type = nal[0] & 31;
if (9 == payload_type)
return; /* access unit delimiter */
return err; /* access unit delimiter */
#if MINIMP4_TRANSCODE_SPS_ID
// Transcode SPS, PPS and slice headers, reassigning ID's for SPS and PPS:
// - assign unique ID's to different SPS and PPS
Expand Down Expand Up @@ -2428,6 +2428,8 @@ int mp4_h26x_write_nal(mp4_h26x_writer_t *h, const unsigned char *nal, int lengt
break;
}
#endif
if (err)
break;
}
return err;
}
Expand Down

0 comments on commit 3d259a1

Please sign in to comment.