ffmpeg: Fix integer overflow with cur_dts being AV_NOPTS_VALUE