avformat/utils: Fix integer overflow in end time calculation in update_stream_timings()