Skip to content

Commit

Permalink
update fragments count when writing header
Browse files Browse the repository at this point in the history
  • Loading branch information
jprjr committed May 10, 2022
1 parent fddfeaa commit 9c324d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion minimp4.h
Original file line number Diff line number Diff line change
Expand Up @@ -1024,7 +1024,7 @@ static int mp4e_write_fragment_header(MP4E_mux_t *mux, int track_num, int data_b

ATOM(BOX_moof)
ATOM_FULL(BOX_mfhd, 0)
WRITE_4(mux->fragments_count); // start from 1
WRITE_4(++mux->fragments_count); // start from 1
END_ATOM
ATOM(BOX_traf)
flags = 0;
Expand Down

0 comments on commit 9c324d0

Please sign in to comment.