avformat/utils: Fix integer overflow of fps_first/last_dts