avformat/utils: Never store negative values in last_IP_duration