Skip to content

Commit 4575afb

Browse files
committed
fix typos
1 parent 72cba3a commit 4575afb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

minimp4.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1226,7 +1226,7 @@ static int mp4e_flush_index(MP4E_mux_t *mux)
12261226
{
12271227
// update size of mdat box.
12281228
// One of 2 points, which requires random file access.
1229-
// Second is optonal duration update at beginning of file in fragmenatation mode.
1229+
// Second is optional duration update at beginning of file in fragmentation mode.
12301230
// This can be avoided using "till eof" size code, but in this case indexes must be
12311231
// written before the mdat....
12321232
int64_t size = mux->write_pos - sizeof(box_ftyp);

minimp4_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ int main(int argc, char **argv)
229229
if (do_demux)
230230
return demux(alloc_buf, h264_size, fout, track);
231231

232-
int is_hevc = (0 != strstr(argv[1], "265")) || (0 != strstr(argv[i], "hevc"));
232+
int is_hevc = (0 != strstr(argv[i], "265")) || (0 != strstr(argv[i], "hevc"));
233233

234234
MP4E_mux_t *mux;
235235
mp4_h26x_writer_t mp4wr;

0 commit comments

Comments
 (0)