- if( !p_sys->b_64_ext )
- {
- mvhd = box_full_new( "mvhd", 0, 0 );
- bo_add_32be( mvhd, get_timestamp() ); // creation time
- bo_add_32be( mvhd, get_timestamp() ); // modification time
- bo_add_32be( mvhd, i_movie_timescale); // timescale
- bo_add_32be( mvhd, i_movie_duration ); // duration
- }
- else
- {
- mvhd = box_full_new( "mvhd", 1, 0 );
- bo_add_64be( mvhd, get_timestamp() ); // creation time
- bo_add_64be( mvhd, get_timestamp() ); // modification time
- bo_add_32be( mvhd, i_movie_timescale); // timescale
- bo_add_64be( mvhd, i_movie_duration ); // duration
- }
- bo_add_32be( mvhd, 0x10000 ); // rate
- bo_add_16be( mvhd, 0x100 ); // volume
- bo_add_16be( mvhd, 0 ); // reserved
- for( i = 0; i < 2; i++ )
- {
- bo_add_32be( mvhd, 0 ); // reserved
- }
- for( i = 0; i < 9; i++ )
- {
- bo_add_32be( mvhd, mvhd_matrix[i] );// matrix
- }
- for( i = 0; i < 6; i++ )
- {
- bo_add_32be( mvhd, 0 ); // pre-defined
- }
+ if (!p_sys->b_64_ext) {
+ mvhd = box_full_new("mvhd", 0, 0);
+ bo_add_32be(mvhd, i_timestamp); // creation time
+ bo_add_32be(mvhd, i_timestamp); // modification time
+ bo_add_32be(mvhd, i_movie_timescale); // timescale
+ bo_add_32be(mvhd, i_movie_duration); // duration
+ } else {
+ mvhd = box_full_new("mvhd", 1, 0);
+ bo_add_64be(mvhd, i_timestamp); // creation time
+ bo_add_64be(mvhd, i_timestamp); // modification time
+ bo_add_32be(mvhd, i_movie_timescale); // timescale
+ bo_add_64be(mvhd, i_movie_duration); // duration
+ }
+ bo_add_32be(mvhd, 0x10000); // rate
+ bo_add_16be(mvhd, 0x100); // volume
+ bo_add_16be(mvhd, 0); // reserved
+ for (int i = 0; i < 2; i++)
+ bo_add_32be(mvhd, 0); // reserved
+ for (int i = 0; i < 9; i++)
+ bo_add_32be(mvhd, mvhd_matrix[i]);// matrix
+ for (int i = 0; i < 6; i++)
+ bo_add_32be(mvhd, 0); // pre-defined