Commit 8ac5cc82 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

avformat: fix signed overflow

parent 0361af77
......@@ -757,7 +757,7 @@ static int Demux( demux_t *p_demux )
p_stream->time_base.den - i_start_time + VLC_TS_0;
}
if( pkt.duration > 0 && p_frame->i_length <= 0 )
p_frame->i_length = pkt.duration * 1000000 *
p_frame->i_length = pkt.duration * INT64_C(1000000) *
p_stream->time_base.num /
p_stream->time_base.den;
......
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