Skip to content

Commit 72cba3a

Browse files
pmrochenlieff
authored andcommitted
Fix compilation under Visual Studio
Change fragment that does not compile under Visual Studio
1 parent 2666e56 commit 72cba3a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

minimp4.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,11 +1111,11 @@ int MP4E_put_sample(MP4E_mux_t *mux, int track_num, const void *data, int data_b
11111111
if (!mux->fragments_count++)
11121112
ERR(mp4e_flush_index(mux)); // write file headers before 1st sample
11131113
// write MOOF + MDAT + sample data
1114-
ERR(mp4e_write_fragment_header(mux, track_num, data_bytes, duration, kind
11151114
#if MP4D_TFDT_SUPPORT
1116-
, timestamp
1115+
ERR(mp4e_write_fragment_header(mux, track_num, data_bytes, duration, kind, timestamp));
1116+
#else
1117+
ERR(mp4e_write_fragment_header(mux, track_num, data_bytes, duration, kind));
11171118
#endif
1118-
));
11191119
// write MDAT box for each sample
11201120
ERR(mp4e_write_mdat_box(mux, data_bytes + 8));
11211121
ERR(mux->write_callback(mux->write_pos, data, data_bytes, mux->token));

0 commit comments

Comments
 (0)