Commit b61526d7 authored by Steve Lhomme's avatar Steve Lhomme

mux:mp4: mp4mux_edit_t.i_read_duration is an mtime_t

parent 57771c45
......@@ -244,7 +244,7 @@ static bo_t *GetESDS(mp4mux_trackinfo_t *p_track)
}
if (p_track->i_read_duration > 0)
i_bitrate_avg = INT64_C(8000000) * i_bitrate_avg / p_track->i_read_duration;
i_bitrate_avg = CLOCK_FREQ * 8 * i_bitrate_avg / p_track->i_read_duration;
else
i_bitrate_avg = 0;
if (i_bitrate_max <= 1)
......
......@@ -55,7 +55,7 @@ typedef struct
block_t *a52_frame;
/* stats */
int64_t i_read_duration;
mtime_t i_read_duration;
uint32_t i_timescale;
mtime_t i_firstdts; /* the really first packet */
bool b_hasbframes;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment