Skip to content

Commit

Permalink
(Continued)
Browse files Browse the repository at this point in the history
  • Loading branch information
wberube committed Aug 12, 2024
1 parent ae9bab5 commit d2541ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/mp4/moov.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ enum BufError write_mvhd(struct BitBuf *ptr, const struct MoovInfo *moov_info) {
chk_err; // 4 Selection duration
err = put_u32_be(ptr, 0);
chk_err; // 4 Current time
err = put_u32_be(ptr, 2);
err = put_u32_be(ptr, 3);
chk_err; // 4 Next track ID

err = put_u32_be_to_offset(ptr, start_atom, ptr->offset - start_atom);
Expand Down
2 changes: 1 addition & 1 deletion src/mp4/mp4.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ enum BufError mp4_set_slice(const char *nal_data, const uint32_t nal_len,
samples_info[0].duration = default_sample_size;
samples_info[0].flags = is_iframe ? 0 : 65536;
samples_info[1].size = buf_aud.offset;
samples_info[1].duration = buf_aud.offset / aud_framesize * aud_samplerate;
samples_info[1].duration = default_sample_size;

buf_moof.offset = 0;
err = write_moof(
Expand Down

0 comments on commit d2541ed

Please sign in to comment.