Commit 12abe1c7 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

avformat: fix signed overflow

(cherry picked from commit 8ac5cc821f0a976c32885d56d33d2e358f776414)
parent 4100a942
......@@ -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