avformat/mov: Fix integer overflows related to sample_duration